summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/arm/iopl.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/arm/iopl.c')
-rw-r--r--libc/sysdeps/linux/arm/iopl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/arm/iopl.c b/libc/sysdeps/linux/arm/iopl.c
index df953d3c8..f3d42edb5 100644
--- a/libc/sysdeps/linux/arm/iopl.c
+++ b/libc/sysdeps/linux/arm/iopl.c
@@ -22,6 +22,8 @@
#include <errno.h>
+#ifdef __NR_iopl
+
#define MAX_PORT 0x10000
int iopl(int level)
@@ -34,3 +36,5 @@ int iopl(int level)
return ioperm(0, MAX_PORT, 1);
return 0;
}
+
+#endif