From: Jakub Jelinek Date: Tue, 12 Jan 2010 13:41:52 +0000 (-0800) Subject: Fix compile error with sys/wait.h. X-Git-Tag: fedora/glibc-2.11.90-8~1^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8500fa8325bb9dde4ebb3aa59a52fd2ffdc07f54;p=thirdparty%2Fglibc.git Fix compile error with sys/wait.h. --- diff --git a/ChangeLog b/ChangeLog index 16638da8a32..c9cd999673f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-01-12 Jakub Jelinek + + * posix/sys/wait.h: Don't define W* macros etc. if + stdlib.h has been included with _POSIX_C_SOURCE >= 200809L. + 2010-01-11 Ulrich Drepper * io/sys/stat.h: Declare fchmod for XPG7. diff --git a/posix/sys/wait.h b/posix/sys/wait.h index bb98c003968..6d7f0684c19 100644 --- a/posix/sys/wait.h +++ b/posix/sys/wait.h @@ -32,7 +32,7 @@ __BEGIN_DECLS #include /* These macros could also be defined in . */ -#if !defined _STDLIB_H || !defined __USE_XOPEN +#if !defined _STDLIB_H || (!defined __USE_XOPEN && !defined __USE_XOPEN2K8) /* This will define the `W*' macros for the flag bits to `waitpid', `wait3', and `wait4'. */ # include