summaryrefslogtreecommitdiff
path: root/include/sys
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-12-16 11:06:08 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-12-16 11:06:08 +0000
commitf6ec4106b66554f64f24713cdeea19916b2b3f57 (patch)
tree18448c32802ae4873a3559b5ff6a56018d46cf4f /include/sys
parentb5543599fd6ef5424a7081abd0ead627fa006116 (diff)
Use kernel provided syscalls for user-space, the one from libc is not usable
Diffstat (limited to 'include/sys')
-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