summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-11-04 15:06:25 +0000
committerEric Andersen <andersen@codepoet.org>2002-11-04 15:06:25 +0000
commita9c0264ec248cbd7aa353fe0ccf6789dd64d52a0 (patch)
tree5668fa3677fc7a368afd2f502be99c358840e3e9 /libc/sysdeps/linux/common
parent401ee58a1483c226eb4a316c12965ddf224ab438 (diff)
Oops. Fix compilation on arm.
-Erik
Diffstat (limited to 'libc/sysdeps/linux/common')
-rw-r--r--libc/sysdeps/linux/common/syscalls.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/common/syscalls.c b/libc/sysdeps/linux/common/syscalls.c
index e0dbdf39d..63c70e85a 100644
--- a/libc/sysdeps/linux/common/syscalls.c
+++ b/libc/sysdeps/linux/common/syscalls.c
@@ -991,8 +991,10 @@ weak_alias(fstat, fstat64);
//#define __NR_iopl 110
#ifdef L_iopl
+/* For arm there is a totally different implementation */
+#if !defined(__arm__)
/* Tuns out the m68k unistd.h kernel header is broken */
-# if defined __UCLIBC_HAS_MMU__ && defined __NR_iopl && ! defined(__mc68000__)
+# if defined __UCLIBC_HAS_MMU__ && defined __NR_iopl && ( !defined(__mc68000__))
_syscall1(int, iopl, int, level);
# else
int iopl(int level)
@@ -1001,6 +1003,7 @@ weak_alias(fstat, fstat64);
return -1;
}
# endif
+# endif
#endif
//#define __NR_vhangup 111