diff options
Diffstat (limited to 'libc/sysdeps/linux/common/getuid.c')
-rw-r--r-- | libc/sysdeps/linux/common/getuid.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/libc/sysdeps/linux/common/getuid.c b/libc/sysdeps/linux/common/getuid.c index 21c504d65..7d5a02bc6 100644 --- a/libc/sysdeps/linux/common/getuid.c +++ b/libc/sysdeps/linux/common/getuid.c @@ -7,12 +7,18 @@ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. */ -#include "syscalls.h" +#include <sys/syscall.h> #include <unistd.h> #if defined __NR_getxuid -# define __NR_getuid __NR_getxuid +# undef __NR_getuid +# define __NR_getuid __NR_getxuid #endif +#ifdef __NR_getuid32 +# undef __NR_getuid +# define __NR_getuid __NR_getuid32 +#endif + libc_hidden_proto(getuid) _syscall0(uid_t, getuid); libc_hidden_def(getuid) |