summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-02-13 08:45:53 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-02-13 08:45:53 +0000
commitc444a965e2d60c5a7de046aa3a279dc0f5bd117b (patch)
tree5ce748730e3878f5cd67ca0e5bf9f52488e4f33f /libc
parentb908ff04563c88b4f676fcaeb40ea10da5f9f6cd (diff)
Mark some as GNU extensions
Diffstat (limited to 'libc')
-rw-r--r--libc/sysdeps/linux/common/getresgid.c2
-rw-r--r--libc/sysdeps/linux/common/getresuid.c2
-rw-r--r--libc/sysdeps/linux/common/setresgid.c2
-rw-r--r--libc/sysdeps/linux/common/setresuid.c2
4 files changed, 8 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/getresgid.c b/libc/sysdeps/linux/common/getresgid.c
index 158a8984f..bc19b97ea 100644
--- a/libc/sysdeps/linux/common/getresgid.c
+++ b/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
diff --git a/libc/sysdeps/linux/common/getresuid.c b/libc/sysdeps/linux/common/getresuid.c
index 7f0e0f2b0..b8d1788f6 100644
--- a/libc/sysdeps/linux/common/getresuid.c
+++ b/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
diff --git a/libc/sysdeps/linux/common/setresgid.c b/libc/sysdeps/linux/common/setresgid.c
index 51bc5e2a8..07959e4af 100644
--- a/libc/sysdeps/linux/common/setresgid.c
+++ b/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
diff --git a/libc/sysdeps/linux/common/setresuid.c b/libc/sysdeps/linux/common/setresuid.c
index 2d8122349..1249611a9 100644
--- a/libc/sysdeps/linux/common/setresuid.c
+++ b/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