__WAIT_STATUS

Bruno Haible haible@ilog.fr
Fri Apr 14 15:34:00 GMT 2000


Wanted to test the current glibc, but - ouch! - gcc doesn't bootstrap any more.
The problem is that <stdlib.h> and <sys/wait.h> are incompatible:

$ cat foo.c
#include <stdlib.h>
#include <sys/wait.h>

$ stage1/xgcc -Bstage1/ -c foo.c
In file included from foo.c:2:
/packages/libc6/include/sys/wait.h:113: parse error before `__stat_loc'
/packages/libc6/include/sys/wait.h:114: parse error before `__stat_loc'
In file included from foo.c:2:
/packages/libc6/include/sys/wait.h:161: parse error before `__stat_loc'
/packages/libc6/include/sys/wait.h:171: parse error before `__WAIT_STATUS'

My quick fix was to remove the "defined __USE_XOPEN && " from stdlib.h.
I don't know whether that's correct, though.

Bruno


More information about the Libc-alpha mailing list