summaryrefslogtreecommitdiff
path: root/usr.sbin/pppd/chat/chat.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1998-05-08 04:52:38 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1998-05-08 04:52:38 +0000
commitde1c15bacfef205336e6ed358d45722777574cc8 (patch)
tree2c6746f6856ecc235155227a375bdef96ac19b20 /usr.sbin/pppd/chat/chat.c
parent860bdcaf761bcf8225b4dec33bfd17ad1d20c9b3 (diff)
pppd 2.3.5
Diffstat (limited to 'usr.sbin/pppd/chat/chat.c')
-rw-r--r--usr.sbin/pppd/chat/chat.c16
1 files changed, 13 insertions, 3 deletions
diff --git a/usr.sbin/pppd/chat/chat.c b/usr.sbin/pppd/chat/chat.c
index ba7cb62411b..53120e4c720 100644
--- a/usr.sbin/pppd/chat/chat.c
+++ b/usr.sbin/pppd/chat/chat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: chat.c,v 1.6 1998/01/17 20:30:33 millert Exp $ */
+/* $OpenBSD: chat.c,v 1.7 1998/05/08 04:52:36 millert Exp $ */
/*
* Chat -- a program for automatic session establishment (i.e. dial
@@ -81,9 +81,9 @@
#ifndef lint
#if 0
-static char rcsid[] = "Id: chat.c,v 1.17 1997/11/27 06:37:15 paulus Exp $";
+static char rcsid[] = "Id: chat.c,v 1.19 1998/03/24 23:57:48 paulus Exp $";
#else
-static char rcsid[] = "$OpenBSD: chat.c,v 1.6 1998/01/17 20:30:33 millert Exp $";
+static char rcsid[] = "$OpenBSD: chat.c,v 1.7 1998/05/08 04:52:36 millert Exp $";
#endif
#endif
@@ -1397,6 +1397,16 @@ register char *string;
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>