Added cygwin32 changes.

This commit is contained in:
Janet B. Anderson
1997-05-05 18:31:00 +00:00
parent fc3db2c3bf
commit c104460654

View File

@@ -30,10 +30,14 @@
#ifdef linux
#include <sys/socketio.h>
#else
#ifdef CYGWIN32
#include <osisock.h>
#else
#include <sys/sockio.h>
#endif
#endif
#endif
#endif
#include <sys/time.h>
#include <netdb.h>
#include <fcntl.h>
@@ -75,9 +79,13 @@ static void get_child(int sig)
{
#ifdef SOLARIS
while(waitpid(-1,(int*)NULL,WNOHANG)>0);
#else
#ifdef CYGWIN32
while(waitpid(-1,(int*)NULL,WNOHANG)>0);
#else
while(wait3((int *)NULL,WNOHANG,(struct rusage *)NULL)>0);
#endif
#endif
#if defined linux || defined SOLARIS
signal(SIGCHLD,get_child); /* for reaping children */