浏览代码

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

Peter S. Mazinger 20 年之前
父节点
当前提交
f6ec4106b6
共有 1 个文件被更改,包括 6 次插入1 次删除
  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