summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/getegid.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/common/getegid.c')
-rw-r--r--libc/sysdeps/linux/common/getegid.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/libc/sysdeps/linux/common/getegid.c b/libc/sysdeps/linux/common/getegid.c
index ff28c51b7..466d63d89 100644
--- a/libc/sysdeps/linux/common/getegid.c
+++ b/libc/sysdeps/linux/common/getegid.c
@@ -12,8 +12,13 @@
libc_hidden_proto(getegid)
-#ifdef __NR_getegid
-#define __NR___syscall_getegid __NR_getegid
+#if defined(__NR_getegid32)
+# undef __NR_getegid
+# define __NR_getegid __NR_getegid32
+_syscall0(gid_t, getegid);
+
+#elif defined(__NR_getegid)
+# define __NR___syscall_getegid __NR_getegid
static inline _syscall0(int, __syscall_getegid);
gid_t getegid(void)
{