summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-04-23 21:20:42 +0000
committerEric Andersen <andersen@codepoet.org>2001-04-23 21:20:42 +0000
commit3d7f18fb7a13286981097636b5c6764975031837 (patch)
tree7de4c2650fe6e6ceff0902bc167a2bb3e8eb111f /libc
parente5b0dc856bb1e5eeec57be3bd63b091c10ef67a9 (diff)
Always use __NR_<name>, not SYS_<name>
-Erik
Diffstat (limited to 'libc')
-rw-r--r--libc/sysdeps/linux/common/syscalls.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libc/sysdeps/linux/common/syscalls.c b/libc/sysdeps/linux/common/syscalls.c
index 8d51f1f4f..ee6de0d89 100644
--- a/libc/sysdeps/linux/common/syscalls.c
+++ b/libc/sysdeps/linux/common/syscalls.c
@@ -329,7 +329,7 @@ _syscall0(gid_t, getgid);
//#define __NR_geteuid 49
#ifdef L_geteuid
-#ifdef SYS_geteuid
+#ifdef __NR_geteuid
#include <unistd.h>
_syscall0(uid_t, geteuid);
#else
@@ -342,7 +342,7 @@ uid_t geteuid(void)
//#define __NR_getegid 50
#ifdef L_getegid
-#ifdef SYS_getegid
+#ifdef __NR_getegid
#include <unistd.h>
_syscall0(gid_t, getegid);
#else
@@ -447,7 +447,7 @@ _syscall2(int, dup2, int, oldfd, int, newfd);
//#define __NR_getppid 64
#ifdef L_getppid
#include <unistd.h>
-#ifdef SYS_getppid
+#ifdef __NR_getppid
_syscall0(pid_t, getppid);
#else
pid_t getppid(void)