diff options
Diffstat (limited to 'libc')
-rw-r--r-- | libc/sysdeps/linux/common/ioperm.c | 3 | ||||
-rw-r--r-- | libc/sysdeps/linux/common/iopl.c | 6 |
2 files changed, 5 insertions, 4 deletions
diff --git a/libc/sysdeps/linux/common/ioperm.c b/libc/sysdeps/linux/common/ioperm.c index b448d2a0d..fc57a97e1 100644 --- a/libc/sysdeps/linux/common/ioperm.c +++ b/libc/sysdeps/linux/common/ioperm.c @@ -9,6 +9,7 @@ #include "syscalls.h" #if defined __ARCH_HAS_MMU__ && defined __NR_ioperm -#include <sys/io.h> +/* psm: can't #include <sys/io.h>, some archs miss it */ +extern int ioperm(unsigned long __from, unsigned long __num, int __turn_on) __THROW; _syscall3(int, ioperm, unsigned long, from, unsigned long, num, int, turn_on); #endif diff --git a/libc/sysdeps/linux/common/iopl.c b/libc/sysdeps/linux/common/iopl.c index 36126d832..90069c08e 100644 --- a/libc/sysdeps/linux/common/iopl.c +++ b/libc/sysdeps/linux/common/iopl.c @@ -8,8 +8,8 @@ */ #include "syscalls.h" -/* Tuns out the m68k unistd.h kernel header is broken */ -#if defined __ARCH_HAS_MMU__ && defined __NR_iopl && ( !defined(__mc68000__)) -#include <sys/io.h> +#if defined __ARCH_HAS_MMU__ && defined __NR_iopl +/* psm: can't #include <sys/io.h>, some archs miss it */ +extern int iopl(int __level) __THROW; _syscall1(int, iopl, int, level); #endif |