summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/waitid.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/common/waitid.c')
-rw-r--r--libc/sysdeps/linux/common/waitid.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/common/waitid.c b/libc/sysdeps/linux/common/waitid.c
index 0e25acb62..b8d2f70ba 100644
--- a/libc/sysdeps/linux/common/waitid.c
+++ b/libc/sysdeps/linux/common/waitid.c
@@ -6,10 +6,11 @@
*/
#include <sys/syscall.h>
+
+#if defined __USE_SVID || defined __USE_XOPEN
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>
-#ifdef __NR_waitid
_syscall4(int, waitid, idtype_t, idtype, id_t, id, siginfo_t*, infop, int, options);
#endif