summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/getuid.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/common/getuid.c')
-rw-r--r--libc/sysdeps/linux/common/getuid.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/common/getuid.c b/libc/sysdeps/linux/common/getuid.c
index 21c504d65..484db370f 100644
--- a/libc/sysdeps/linux/common/getuid.c
+++ b/libc/sysdeps/linux/common/getuid.c
@@ -11,8 +11,14 @@
#include <unistd.h>
#if defined __NR_getxuid
-# define __NR_getuid __NR_getxuid
+# undef __NR_getuid
+# define __NR_getuid __NR_getxuid
#endif
+#ifdef __NR_getuid32
+# undef __NR_getuid
+# define __NR_getuid __NR_getuid32
+#endif
+
libc_hidden_proto(getuid)
_syscall0(uid_t, getuid);
libc_hidden_def(getuid)