summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2011-11-02 17:31:51 +0100
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2011-11-02 17:31:51 +0100
commit2f88f917c27cfb08cd889a71fec62f823b828f74 (patch)
tree5ab24f4f27f810efa0f0a57960e3183911a4b861 /libc/sysdeps/linux/common
parent3dbeeb83952b6645381d7193bd3321082ba932b6 (diff)
setegid: use setresgid conditionally
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc/sysdeps/linux/common')
-rw-r--r--libc/sysdeps/linux/common/setegid.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/setegid.c b/libc/sysdeps/linux/common/setegid.c
index 30329bc5c..eae57f585 100644
--- a/libc/sysdeps/linux/common/setegid.c
+++ b/libc/sysdeps/linux/common/setegid.c
@@ -11,6 +11,12 @@
#include <sys/types.h>
#include <sys/syscall.h>
+
+#if !defined __UCLIBC_LINUX_SPECIFIC__
+#undef __NR_setresgid
+#undef __NR_setresgid32
+#endif
+
int setegid(gid_t gid)
{
int result;