diff options
author | Mike Frysinger <vapier@gentoo.org> | 2012-03-26 22:13:11 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2012-03-26 22:28:50 -0400 |
commit | 0dc898bd036a28211417f3830cb441eb71a9dd79 (patch) | |
tree | aac4e22e07ec91422181d2746913f6e68ccb8032 /libc/sysdeps | |
parent | f8ad95479407205e3c9dd0cb0d1829bdadf121bb (diff) |
arm: disable ioperm/iopl stubs
ARM always provides its own userspace funcs for ioperm/iopl.
They've never had syscalls. So disable the stubs on ARM to
avoid multiple definition errors.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'libc/sysdeps')
-rw-r--r-- | libc/sysdeps/linux/common/stubs.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/stubs.c b/libc/sysdeps/linux/common/stubs.c index 6afc8d93a..fc4dd38a7 100644 --- a/libc/sysdeps/linux/common/stubs.c +++ b/libc/sysdeps/linux/common/stubs.c @@ -41,6 +41,9 @@ __attribute_used__ static int ret_enosys_stub(void) #ifdef __arm__ # define __NR_fadvise64_64 __NR_arm_fadvise64_64 # define __NR_fadvise64 __NR_arm_fadvise64_64 +/* ARM always provides funcs w/out syscalls; disable the stubs */ +# define __NR_ioperm 0 +# define __NR_iopl 0 #endif #ifdef __mips__ |