From bba849fc7f8c04490f4a7dd4535142ebfa00174b Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 10 Feb 2006 02:02:28 +0000 Subject: add support for newer style kernel calls since some arches (like sparc) only provide the newer versions --- libc/sysdeps/linux/common/seteuid.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libc/sysdeps/linux/common/seteuid.c') diff --git a/libc/sysdeps/linux/common/seteuid.c b/libc/sysdeps/linux/common/seteuid.c index 6d8c9ae3e..e5ed576ff 100644 --- a/libc/sysdeps/linux/common/seteuid.c +++ b/libc/sysdeps/linux/common/seteuid.c @@ -13,7 +13,7 @@ libc_hidden_proto(seteuid) -#if defined __NR_setresuid && defined __USE_GNU +#if defined __NR_setresuid || defined __NR_setresuid32 libc_hidden_proto(setresuid) #endif libc_hidden_proto(setreuid) @@ -28,7 +28,7 @@ int seteuid(uid_t uid) return -1; } -#if defined __NR_setresuid && defined __USE_GNU +#if defined __NR_setresuid || defined __NR_setresuid32 result = setresuid(-1, uid, -1); if (result == -1 && errno == ENOSYS) /* Will also set the saved user ID if euid != uid, -- cgit v1.2.3