diff options
author | Rich Felker <dalias@aerifal.cx> | 2012-11-18 19:31:58 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2012-11-18 19:31:58 -0500 |
commit | 61aa6324af982b635f8c392640a4e8e450c4c6b4 (patch) | |
tree | b17e98b2fd56ef4b11bca2d15007a2b3c8b7a90e /src/linux/iopl.c | |
parent | f54ac2446abac57cacebc64df78a5ef850045700 (diff) | |
download | musl-61aa6324af982b635f8c392640a4e8e450c4c6b4.tar.gz musl-61aa6324af982b635f8c392640a4e8e450c4c6b4.tar.bz2 musl-61aa6324af982b635f8c392640a4e8e450c4c6b4.tar.xz musl-61aa6324af982b635f8c392640a4e8e450c4c6b4.zip |
add port io functions to sys/io.h
based on proposal by Isaac Dunham. nonexistance of bits/io.h will
cause inclusion of sys/io.h to produce an error on archs that are not
supposed to have it. this is probably the desired behavior, but the
error message may be a bit unusual.
Diffstat (limited to 'src/linux/iopl.c')
-rw-r--r-- | src/linux/iopl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/linux/iopl.c b/src/linux/iopl.c index 5a626e16..835d3d4e 100644 --- a/src/linux/iopl.c +++ b/src/linux/iopl.c @@ -1,7 +1,8 @@ -#include <sys/io.h> #include "syscall.h" #ifdef SYS_iopl +#include <sys/io.h> + int iopl(int level) { return syscall(SYS_iopl, level); |