This is the mail archive of the libc-alpha@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

__WAIT_STATUS



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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]