OSDN Git Service

Joseph S. Myers writes:
authorEric Andersen <andersen@codepoet.org>
Thu, 19 Jan 2006 02:19:51 +0000 (02:19 -0000)
committerEric Andersen <andersen@codepoet.org>
Thu, 19 Jan 2006 02:19:51 +0000 (02:19 -0000)
sys/syscall.h uses the IS_IN_libc define before including any header that
includes libc-internal.h (where IS_IN_libc is defined).  This patch makes
sys/syscall.h include features.h to get the IS_IN_libc define where
appropriate.

include/sys/syscall.h

index 7031886..aef1f99 100644 (file)
@@ -20,6 +20,7 @@
 #define _SYSCALL_H     1
 
 /* This file provides us with the nicely useful _syscall[0-5] macros. */
+#include <features.h>
 #if defined _LIBC && (defined IS_IN_libc || defined NOT_IN_libc)
 # include <bits/syscalls.h>
 #else