#
# Makefile for chat on NeXTs
#
-# $Id: Makefile.NeXT,v 1.2 1997/03/04 03:45:38 paulus Exp $
+# $Id: Makefile.NeXT,v 1.3 1998/03/24 23:57:45 paulus Exp $
#
ARCHFLAGS =
BINDIR = /usr/local/ppp/bin
MANDIR = /usr/local/ppp/man
-CFLAGS= -O -posix $(ARCHFLAGS)
+CFLAGS= -O -D_POSIX_SOURCE $(ARCHFLAGS)
SRCS = chat.c
OBJS = chat.o
+LIBS = ../libposix/libposix.o
MANPAGES = chat.8
all: chat
chat: $(OBJS)
- $(CC) -o chat $(CFLAGS) $(OBJS)
+ $(CC) -o chat $(CFLAGS) $(OBJS) $(LIBS)
install:
/bin/mkdirs $(MANDIR)/man8 $(BINDIR)
*/
#ifndef lint
-static char rcsid[] = "$Id: chat.c,v 1.18 1998/02/04 01:35:49 paulus Exp $";
+static char rcsid[] = "$Id: chat.c,v 1.19 1998/03/24 23:57:48 paulus Exp $";
#endif
#include <stdio.h>
return (0);
}
+/*
+ * Gross kludge to handle Solaris versions >= 2.6 having usleep.
+ */
+#ifdef SOL2
+#include <sys/param.h>
+#if MAXUID > 65536 /* then this is Solaris 2.6 or later */
+#undef NO_USLEEP
+#endif
+#endif /* SOL2 */
+
#ifdef NO_USLEEP
#include <sys/types.h>
#include <sys/time.h>