diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-02-09 03:24:42 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-02-09 03:24:42 +0000 |
commit | 831219203b354146565ccc421a12f7237e0e3faa (patch) | |
tree | d9d56a769bb261ca5f227e859d6e73cbb2457b95 /libc/sysdeps/linux/common/getegid.c | |
parent | 7477fa1a17a5604040a51d980d21e27c6e281b6e (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/getegid.c')
-rw-r--r-- | libc/sysdeps/linux/common/getegid.c | 9 |
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) { |