[git commit branch/0.9.33] arm: disable ioperm/iopl stubs

Mike Frysinger vapier at gentoo.org
Tue Mar 27 02:37:39 UTC 2012


commit: http://git.uclibc.org/uClibc/commit/?id=f94086fbc258a051476dfb2e63314236954e4ea9
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/0.9.33

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 at gentoo.org>
---
 libc/sysdeps/linux/common/stubs.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libc/sysdeps/linux/common/stubs.c b/libc/sysdeps/linux/common/stubs.c
index 02cd724..dd1a8d1 100644
--- a/libc/sysdeps/linux/common/stubs.c
+++ b/libc/sysdeps/linux/common/stubs.c
@@ -173,11 +173,11 @@ make_stub(inotify_add_watch)
 make_stub(inotify_rm_watch)
 #endif
 
-#if !defined __NR_ioperm && defined __UCLIBC_LINUX_SPECIFIC__
+#if !defined __NR_ioperm && defined __UCLIBC_LINUX_SPECIFIC__ && !defined __arm__
 make_stub(ioperm)
 #endif
 
-#if !defined __NR_iopl && defined __UCLIBC_LINUX_SPECIFIC__
+#if !defined __NR_iopl && defined __UCLIBC_LINUX_SPECIFIC__ && !defined __arm__
 make_stub(iopl)
 #endif
 


More information about the uClibc-cvs mailing list