Message ID | 83poezml4x.fsf@gnu.org |
---|---|
State | New |
Headers | show |
--- libiberty/waitpid.c~0 2016-08-01 18:50:21.000000000 +0300 +++ libiberty/waitpid.c 2017-05-23 21:19:34.302415000 +0300 @@ -23,6 +23,11 @@ does the return value. The third argume #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) {