Bläddra i källkod

setegid: use setresgid conditionally

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Bernhard Reutner-Fischer 12 år sedan
förälder
incheckning
2f88f917c2
1 ändrade filer med 6 tillägg och 0 borttagningar
  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;