X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=libiberty%2Fwaitpid.c;h=fd519d7696e074573f37b204c0a8485d5a2b8d0f;hb=c651c0a400c75a90e24a6a91caf64a73cad9179e;hp=703b8a6def21321146ce7c4083923a12bcd59932;hpb=614a23c65d9eabed00a5fe30a4d0fa138b6aa5e9;p=pf3gnuchains%2Fgcc-fork.git diff --git a/libiberty/waitpid.c b/libiberty/waitpid.c index 703b8a6def2..fd519d7696e 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 (;;) {