diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-02-10 02:02:28 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-02-10 02:02:28 +0000 |
commit | bba849fc7f8c04490f4a7dd4535142ebfa00174b (patch) | |
tree | f7064e153b383712a2b959fbf391417ceb609f19 /libc/sysdeps/linux/common/setegid.c | |
parent | 6c6ffb0220c09b92ffa4a0cb89ec985d40e9e275 (diff) |
add support for newer style kernel calls since some arches (like sparc) only provide the newer versions
Diffstat (limited to 'libc/sysdeps/linux/common/setegid.c')
-rw-r--r-- | libc/sysdeps/linux/common/setegid.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/sysdeps/linux/common/setegid.c b/libc/sysdeps/linux/common/setegid.c index 92ef3a05d..e0bbfd4bc 100644 --- a/libc/sysdeps/linux/common/setegid.c +++ b/libc/sysdeps/linux/common/setegid.c @@ -11,7 +11,7 @@ #include <sys/types.h> #include <sys/syscall.h> -#if defined __NR_setresgid && defined __USE_GNU +#if defined __NR_setresgid || defined __NR_setresgid32 libc_hidden_proto(setresgid) #endif libc_hidden_proto(setregid) @@ -26,7 +26,7 @@ int setegid(gid_t gid) return -1; } -#if defined __NR_setresgid && defined __USE_GNU +#if defined __NR_setresgid || defined __NR_setresgid32 result = setresgid(-1, gid, -1); if (result == -1 && errno == ENOSYS) /* Will also set the saved group ID if egid != gid, |