summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-11-18 19:58:15 -0500
committerRich Felker <dalias@aerifal.cx>2012-11-18 19:58:15 -0500
commit0004ea613ac310daaee30c167112d796db33fa70 (patch)
tree675ab38b730d016465ece9c704af061277790b78
parent61aa6324af982b635f8c392640a4e8e450c4c6b4 (diff)
downloadmusl-0004ea613ac310daaee30c167112d796db33fa70.tar.gz
musl-0004ea613ac310daaee30c167112d796db33fa70.tar.bz2
musl-0004ea613ac310daaee30c167112d796db33fa70.tar.xz
musl-0004ea613ac310daaee30c167112d796db33fa70.zip
fix breakage from introducing bits header for sys/io.h
apparently some other archs have sys/io.h and should not break just because they don't have the x86 port io functions. provide a blank bits/io.h everywhere for now.
-rw-r--r--arch/arm/bits/io.h0
-rw-r--r--arch/i386/bits/io.h3
-rw-r--r--arch/microblaze/bits/io.h0
-rw-r--r--arch/mips/bits/io.h0
-rw-r--r--arch/powerpc/bits/io.h0
-rw-r--r--arch/x86_64/bits/io.h3
-rw-r--r--include/sys/io.h3
7 files changed, 3 insertions, 6 deletions
diff --git a/arch/arm/bits/io.h b/arch/arm/bits/io.h
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/arch/arm/bits/io.h
diff --git a/arch/i386/bits/io.h b/arch/i386/bits/io.h
index d26ea57b..dd5bddc9 100644
--- a/arch/i386/bits/io.h
+++ b/arch/i386/bits/io.h
@@ -1,6 +1,3 @@
-int iopl(int);
-int ioperm(unsigned long, unsigned long, int);
-
static __inline void outb(unsigned char __val, unsigned short __port)
{
__asm__ volatile ("outb %0,%1" : : "a" (__val), "dN" (__port));
diff --git a/arch/microblaze/bits/io.h b/arch/microblaze/bits/io.h
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/arch/microblaze/bits/io.h
diff --git a/arch/mips/bits/io.h b/arch/mips/bits/io.h
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/arch/mips/bits/io.h
diff --git a/arch/powerpc/bits/io.h b/arch/powerpc/bits/io.h
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/arch/powerpc/bits/io.h
diff --git a/arch/x86_64/bits/io.h b/arch/x86_64/bits/io.h
index d26ea57b..dd5bddc9 100644
--- a/arch/x86_64/bits/io.h
+++ b/arch/x86_64/bits/io.h
@@ -1,6 +1,3 @@
-int iopl(int);
-int ioperm(unsigned long, unsigned long, int);
-
static __inline void outb(unsigned char __val, unsigned short __port)
{
__asm__ volatile ("outb %0,%1" : : "a" (__val), "dN" (__port));
diff --git a/include/sys/io.h b/include/sys/io.h
index ce5423e5..16658cec 100644
--- a/include/sys/io.h
+++ b/include/sys/io.h
@@ -8,6 +8,9 @@ extern "C" {
#include <bits/io.h>
+int iopl(int);
+int ioperm(unsigned long, unsigned long, int);
+
#ifdef __cplusplus
}
#endif