summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/ioperm.c
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-01-27 15:18:17 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-01-27 15:18:17 +0000
commit6167a20f664e6bf46ca4fce4b2b608dd1249000f (patch)
tree6b27da821b0091d5916f3145ed4c35ddeba0c351 /libc/sysdeps/linux/common/ioperm.c
parent23eaf72eb88953da4452c30d4974113b9527952c (diff)
Add back explicit prototype, archs miss sys/io.h, remove m68k exclusion
Diffstat (limited to 'libc/sysdeps/linux/common/ioperm.c')
-rw-r--r--libc/sysdeps/linux/common/ioperm.c3
1 files changed, 2 insertions, 1 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