This is the mail archive of the
libc-alpha@sourceware.cygnus.com
mailing list for the glibc project.
__WAIT_STATUS
- To: libc-alpha at sourceware dot cygnus dot com
- Subject: __WAIT_STATUS
- From: Bruno Haible <haible at ilog dot fr>
- Date: Sat, 15 Apr 2000 00:33:30 +0200 (MET DST)
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