Skip to content

Commit

Permalink
Fix compile error with sys/wait.h.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakub Jelinek authored and Ulrich Drepper committed Jan 12, 2010
1 parent e00a72e commit 8500fa8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2010-01-12 Jakub Jelinek <jakub@redhat.com>

* 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 <drepper@redhat.com>

* io/sys/stat.h: Declare fchmod for XPG7.
Expand Down
2 changes: 1 addition & 1 deletion posix/sys/wait.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ __BEGIN_DECLS
#include <sys/resource.h>

/* These macros could also be defined in <stdlib.h>. */
#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 <bits/waitflags.h>
Expand Down

0 comments on commit 8500fa8

Please sign in to comment.