diff options
Diffstat (limited to 'libc/sysdeps')
-rw-r--r-- | libc/sysdeps/linux/common/getresgid.c | 2 | ||||
-rw-r--r-- | libc/sysdeps/linux/common/getresuid.c | 2 | ||||
-rw-r--r-- | libc/sysdeps/linux/common/setresgid.c | 2 | ||||
-rw-r--r-- | libc/sysdeps/linux/common/setresuid.c | 2 |
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 |