diff --git a/src/dbtools/BSlib.c b/src/dbtools/BSlib.c index d4bf1dba6..667fdf148 100644 --- a/src/dbtools/BSlib.c +++ b/src/dbtools/BSlib.c @@ -30,10 +30,14 @@ #ifdef linux #include #else +#ifdef CYGWIN32 +#include +#else #include #endif #endif #endif +#endif #include #include #include @@ -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 */