summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/getresuid.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-02-09 03:24:42 +0000
committerMike Frysinger <vapier@gentoo.org>2006-02-09 03:24:42 +0000
commit831219203b354146565ccc421a12f7237e0e3faa (patch)
treed9d56a769bb261ca5f227e859d6e73cbb2457b95 /libc/sysdeps/linux/common/getresuid.c
parent7477fa1a17a5604040a51d980d21e27c6e281b6e (diff)
use the newer versions of functions when available (fixes sparc which doesnt provide older versions at all)
Diffstat (limited to 'libc/sysdeps/linux/common/getresuid.c')
-rw-r--r--libc/sysdeps/linux/common/getresuid.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/common/getresuid.c b/libc/sysdeps/linux/common/getresuid.c
index 37b5191c1..7f0e0f2b0 100644
--- a/libc/sysdeps/linux/common/getresuid.c
+++ b/libc/sysdeps/linux/common/getresuid.c
@@ -10,7 +10,12 @@
#include "syscalls.h"
#include <unistd.h>
-#ifdef __NR_getresuid
+#if defined(__NR_getresuid32)
+# undef __NR_getresuid
+# define __NR_getresuid __NR_getresuid32
+_syscall3(int, getresuid, uid_t *, ruid, uid_t *, euid, uid_t *, suid)
+
+#elif defined(__NR_getresuid)
# define __NR___syscall_getresuid __NR_getresuid
static inline _syscall3(int, __syscall_getresuid, __kernel_uid_t *, ruid,
__kernel_uid_t *, euid, __kernel_uid_t *, suid);