Sfoglia il codice sorgente

setegid: use setresgid conditionally

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Bernhard Reutner-Fischer 13 anni fa
parent
commit
2f88f917c2
1 ha cambiato i file con 6 aggiunte e 0 eliminazioni
  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;