]> git.ozlabs.org Git - ppp.git/blobdiff - chat/chat.c
Kludge to handle solaris 2.6 having usleep; NeXT mods from Steve Perkins
[ppp.git] / chat / chat.c
index 90dcc5be837cac3787c77d9fc5fe66c1bd858699..409285666644e8cecef28e677a66d46e47de61b7 100644 (file)
@@ -78,7 +78,7 @@
  */
 
 #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>
@@ -1414,6 +1414,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>