summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-11-18 19:31:58 -0500
committerRich Felker <dalias@aerifal.cx>2012-11-18 19:31:58 -0500
commit61aa6324af982b635f8c392640a4e8e450c4c6b4 (patch)
treeb17e98b2fd56ef4b11bca2d15007a2b3c8b7a90e /include
parentf54ac2446abac57cacebc64df78a5ef850045700 (diff)
downloadmusl-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 'include')
-rw-r--r--include/sys/io.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/sys/io.h b/include/sys/io.h
index a6ba4674..ce5423e5 100644
--- a/include/sys/io.h
+++ b/include/sys/io.h
@@ -4,8 +4,9 @@
extern "C" {
#endif
-int ioperm(unsigned long, unsigned long, int);
-int iopl(int);
+#include <features.h>
+
+#include <bits/io.h>
#ifdef __cplusplus
}