X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=libiberty%2Fwaitpid.c;fp=libiberty%2Fwaitpid.c;h=fd519d7696e074573f37b204c0a8485d5a2b8d0f;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=703b8a6def21321146ce7c4083923a12bcd59932;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/libiberty/waitpid.c b/libiberty/waitpid.c index 703b8a6d..fd519d76 100644 --- a/libiberty/waitpid.c +++ b/libiberty/waitpid.c @@ -13,13 +13,18 @@ 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 . */ +#include + #ifdef HAVE_SYS_WAIT_H #include #endif -int -waitpid (pid, stat_loc, options) - int pid, *stat_loc, options; +pid_t +waitpid (pid_t pid, int *stat_loc, int options ATTRIBUTE_UNUSED) { for (;;) {