X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;ds=inline;f=libiberty%2Fwaitpid.c;h=c0e9c3e0ca995a513df59c19fe6e3ded8274e608;hb=abb78b78c4184d2ac968362229adae268385a21c;hp=33f2f8e38cca3620db6b00dd2b56e8d264316aa8;hpb=49b1fae4309ab5b9833f0af388483c2b6b4b3d50;p=deliverable%2Fbinutils-gdb.git diff --git a/libiberty/waitpid.c b/libiberty/waitpid.c index 33f2f8e38c..c0e9c3e0ca 100644 --- a/libiberty/waitpid.c +++ b/libiberty/waitpid.c @@ -13,6 +13,7 @@ does the return value. The third argument is unused in @libib{}. #ifdef HAVE_CONFIG_H #include "config.h" #endif +#include "ansidecl.h" /* On some systems (such as WindISS), you must include to get the definition of "pid_t" before you include . */ @@ -22,8 +23,13 @@ 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) +waitpid (pid_t pid, int *stat_loc, int options ATTRIBUTE_UNUSED) { for (;;) {