diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2011-11-02 17:31:51 +0100 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2011-11-02 17:31:51 +0100 |
commit | 2f88f917c27cfb08cd889a71fec62f823b828f74 (patch) | |
tree | 5ab24f4f27f810efa0f0a57960e3183911a4b861 | |
parent | 3dbeeb83952b6645381d7193bd3321082ba932b6 (diff) |
setegid: use setresgid conditionally
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
-rw-r--r-- | libc/sysdeps/linux/common/setegid.c | 6 |
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; |