diff options
Diffstat (limited to 'libiberty/waitpid.c')
-rw-r--r-- | libiberty/waitpid.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libiberty/waitpid.c b/libiberty/waitpid.c index fd519d7..c0e9c3e 100644 --- a/libiberty/waitpid.c +++ b/libiberty/waitpid.c @@ -23,6 +23,11 @@ does the return value. The third argument is unused in @libib{}. #include <sys/wait.h> #endif +#ifdef __MINGW32__ +#include <process.h> +#define wait(s) _cwait(s,pid,_WAIT_CHILD) +#endif + pid_t waitpid (pid_t pid, int *stat_loc, int options ATTRIBUTE_UNUSED) { |