Fix implicit declaration of iopl

warning: implicit declaration of function ‘iopl’ [-Wimplicit-function-declaration]

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
This commit is contained in:
Jeremy Huddleston
2011-10-18 23:09:09 -07:00
parent 94a8b34528
commit c421f2477c

View File

@@ -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