Browse Source

Mark some as GNU extensions

Peter S. Mazinger 18 years ago
parent
commit
c444a965e2

+ 2 - 0
libc/sysdeps/linux/common/getresgid.c

@@ -8,6 +8,7 @@
  */
 
 #include "syscalls.h"
+#ifdef __USE_GNU
 #include <unistd.h>
 
 #if defined(__NR_getresgid32)
@@ -34,3 +35,4 @@ int getresgid(gid_t * rgid, gid_t * egid, gid_t * sgid)
 	return result;
 }
 #endif
+#endif

+ 2 - 0
libc/sysdeps/linux/common/getresuid.c

@@ -8,6 +8,7 @@
  */
 
 #include "syscalls.h"
+#ifdef __USE_GNU
 #include <unistd.h>
 
 #if defined(__NR_getresuid32)
@@ -34,3 +35,4 @@ int getresuid(uid_t * ruid, uid_t * euid, uid_t * suid)
 	return result;
 }
 #endif
+#endif

+ 2 - 0
libc/sysdeps/linux/common/setresgid.c

@@ -8,6 +8,7 @@
  */
 
 #include "syscalls.h"
+#ifdef __USE_GNU
 #include <unistd.h>
 
 libc_hidden_proto(setresgid)
@@ -35,3 +36,4 @@ int setresgid(gid_t rgid, gid_t egid, gid_t sgid)
 #endif
 
 libc_hidden_def(setresgid)
+#endif

+ 2 - 0
libc/sysdeps/linux/common/setresuid.c

@@ -8,6 +8,7 @@
  */
 
 #include "syscalls.h"
+#ifdef __USE_GNU
 #include <unistd.h>
 
 libc_hidden_proto(setresuid)
@@ -35,3 +36,4 @@ int setresuid(uid_t ruid, uid_t euid, uid_t suid)
 #endif
 
 libc_hidden_def(setresuid)
+#endif