diff options
author | Jeremy Huddleston <jeremyhu@apple.com> | 2011-10-18 23:09:09 -0700 |
---|---|---|
committer | Jeremy Huddleston <jeremyhu@apple.com> | 2011-10-18 23:09:09 -0700 |
commit | c421f2477c99990d0dc712d6aece981fa6c961e5 (patch) | |
tree | 90154e7b88e61093752bffa390d87d773f017ee9 /util | |
parent | 94a8b34528b42a4fe6f81c8b8bd1ddb6bebaeea9 (diff) |
Fix implicit declaration of iopl
warning: implicit declaration of function ‘iopl’ [-Wimplicit-function-declaration]
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
Diffstat (limited to 'util')
-rw-r--r-- | util/iopl.h | 6 |
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 |