浏览代码

setegid: use setresgid conditionally

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Bernhard Reutner-Fischer 12 年之前
父节点
当前提交
2f88f917c2
共有 1 个文件被更改,包括 6 次插入0 次删除
  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;