summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/sys/syscall.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/sys/syscall.h b/include/sys/syscall.h
index 3b82571a3..703188683 100644
--- a/include/sys/syscall.h
+++ b/include/sys/syscall.h
@@ -20,6 +20,11 @@
#define _SYSCALL_H 1
/* This file provides us with the nicely useful _syscall[0-5] macros. */
-#include <bits/syscalls.h>
+#if defined _LIBC && (defined IS_IN_libc || defined NOT_IN_libc)
+# include <bits/syscalls.h>
+#else
+# include <asm/unistd.h>
+# include <bits/sysnum.h>
+#endif
#endif