add port io functions to sys/io.h
[musl] / src / linux / ioperm.c
index 6d7c37d..08c6d8b 100644 (file)
@@ -1,7 +1,8 @@
-#include <sys/io.h>
 #include "syscall.h"
 
 #ifdef SYS_ioperm
+#include <sys/io.h>
+
 int ioperm(unsigned long from, unsigned long num, int turn_on)
 {
        return syscall(SYS_ioperm, from, num, turn_on);