Explorar o código

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

Peter S. Mazinger %!s(int64=20) %!d(string=hai) anos
pai
achega
f6ec4106b6
Modificáronse 1 ficheiros con 6 adicións e 1 borrados
  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