Define __WAIT_STATUS and the like either if stdlib.h was not included
authordrepper <drepper>
Mon, 24 Apr 2000 01:29:51 +0000 (01:29 +0000)
committerdrepper <drepper>
Mon, 24 Apr 2000 01:29:51 +0000 (01:29 +0000)
or __USE_XOPEN not defined.

posix/sys/wait.h

index 44f47ad..36cc925 100644 (file)
@@ -35,7 +35,7 @@ typedef __pid_t pid_t;
 #endif
 
 /* These macros could also be defined int <stdlib.h>.  */
-#ifndef _STDLIB_H
+#if !defined _STDLIB_H || !defined __USE_XOPEN
 /* This will define the `W*' macros for the flag
    bits to `waitpid', `wait3', and `wait4'.  */
 # include <bits/waitflags.h>