Browse Source

setegid: use setresgid conditionally

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Bernhard Reutner-Fischer 12 years ago
parent
commit
2f88f917c2
1 changed files with 6 additions and 0 deletions
  1. 6 0
      libc/sysdeps/linux/common/setegid.c

+ 6 - 0
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;