X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=libiberty%2Fwaitpid.c;h=c0e9c3e0ca995a513df59c19fe6e3ded8274e608;hb=92bed036098928cd4659c8990e14cf7ad040e0c2;hp=fd519d7696e074573f37b204c0a8485d5a2b8d0f;hpb=f9a9ac80d6a6b5a8e7d64d3d0c81e95fb0003238;p=gcc.git diff --git a/libiberty/waitpid.c b/libiberty/waitpid.c index fd519d7696e..c0e9c3e0ca9 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 #endif +#ifdef __MINGW32__ +#include +#define wait(s) _cwait(s,pid,_WAIT_CHILD) +#endif + pid_t waitpid (pid_t pid, int *stat_loc, int options ATTRIBUTE_UNUSED) {