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 | |
parent | f54ac2446abac57cacebc64df78a5ef850045700 (diff) | |
download | musl-61aa6324af982b635f8c392640a4e8e450c4c6b4.tar.gz 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')
-rw-r--r-- | src/linux/ioperm.c | 3 | ||||
-rw-r--r-- | src/linux/iopl.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/linux/ioperm.c b/src/linux/ioperm.c index 6d7c37d0..08c6d8b8 100644 --- a/src/linux/ioperm.c +++ b/src/linux/ioperm.c @@ -1,7 +1,8 @@ -#include <sys/io.h> #include "syscall.h" #ifdef SYS_ioperm +#include <sys/io.h> + int ioperm(unsigned long from, unsigned long num, int turn_on) { return syscall(SYS_ioperm, from, num, turn_on); 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); |