summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-11-24 07:35:12 +0000
committerEric Andersen <andersen@codepoet.org>2001-11-24 07:35:12 +0000
commitc8cb3a1c22f98d61f5f128303a2b158597963570 (patch)
tree667278282bc0ec8a4e4d0fdc70979539053d09fd /libc/sysdeps/linux
parent614b87de55e550d7b07709124a38f23b2f54a35a (diff)
Work around broken m68k kernel headers... Grumble.
Diffstat (limited to 'libc/sysdeps/linux')
-rw-r--r--libc/sysdeps/linux/common/syscalls.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/common/syscalls.c b/libc/sysdeps/linux/common/syscalls.c
index 9297a81a5..f5c441a6a 100644
--- a/libc/sysdeps/linux/common/syscalls.c
+++ b/libc/sysdeps/linux/common/syscalls.c
@@ -868,7 +868,8 @@ int fstat(int filedes, struct libc_stat *buf)
//#define __NR_iopl 110
#ifdef L_iopl
#include <sys/io.h>
-# if defined __UCLIBC_HAS_MMU__ && defined __NR_iopl
+/* Tuns out the m68k unistd.h kernel header is broken */
+# if defined __UCLIBC_HAS_MMU__ && defined __NR_iopl && ! defined(__mc68000__)
_syscall1(int, iopl, int, level);
# else
int iopl(int level)