X-Git-Url: https://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=chat%2Fchat.c;fp=chat%2Fchat.c;h=409285666644e8cecef28e677a66d46e47de61b7;hp=90dcc5be837cac3787c77d9fc5fe66c1bd858699;hb=0f51228cd3a92449070c5d6e7c14f87effd5f9be;hpb=4182e4cd4ec9c8ed6a0890dce4e24f31605899bc diff --git a/chat/chat.c b/chat/chat.c index 90dcc5b..4092856 100644 --- a/chat/chat.c +++ b/chat/chat.c @@ -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 @@ -1414,6 +1414,16 @@ register char *string; return (0); } +/* + * Gross kludge to handle Solaris versions >= 2.6 having usleep. + */ +#ifdef SOL2 +#include +#if MAXUID > 65536 /* then this is Solaris 2.6 or later */ +#undef NO_USLEEP +#endif +#endif /* SOL2 */ + #ifdef NO_USLEEP #include #include