Browse Source

Use kernel provided syscalls for user-space, the one from libc is not usable

Peter S. Mazinger 19 years ago
parent
commit
f6ec4106b6
1 changed files with 6 additions and 1 deletions
  1. 6 1
      include/sys/syscall.h

+ 6 - 1
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