summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremyhu@apple.com>2011-10-18 23:09:09 -0700
committerJeremy Huddleston <jeremyhu@apple.com>2011-10-18 23:09:09 -0700
commitc421f2477c99990d0dc712d6aece981fa6c961e5 (patch)
tree90154e7b88e61093752bffa390d87d773f017ee9
parent94a8b34528b42a4fe6f81c8b8bd1ddb6bebaeea9 (diff)
Fix implicit declaration of iopl
warning: implicit declaration of function ‘iopl’ [-Wimplicit-function-declaration] Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
-rw-r--r--util/iopl.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/util/iopl.h b/util/iopl.h
index d7890b3..e08207c 100644
--- a/util/iopl.h
+++ b/util/iopl.h
@@ -3,6 +3,12 @@
# include <machine/pio.h>
# include <machine/sysarch.h>
#else
+# if defined(__linux__)
+/* Can't because <sys/iopl.h> provides conflicting inb, outb, etc
+ * # include <sys/io.h>
+ */
+int iopl(int level);
+# endif
# if defined(SVR4) && defined(i386)
# include <sys/types.h>
# ifdef NCR