summaryrefslogtreecommitdiffstats
path: root/package/libpciaccess/0001-musl-arm.patch
diff options
context:
space:
mode:
Diffstat (limited to 'package/libpciaccess/0001-musl-arm.patch')
-rw-r--r--package/libpciaccess/0001-musl-arm.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/package/libpciaccess/0001-musl-arm.patch b/package/libpciaccess/0001-musl-arm.patch
new file mode 100644
index 0000000000..0077f451bf
--- /dev/null
+++ b/package/libpciaccess/0001-musl-arm.patch
@@ -0,0 +1,20 @@
+Fix musl build
+
+Inspired by http://patchwork.openembedded.org/patch/111661/
+"inb/outb are implemented for ARM on glibc but not on linux in general
+therefore the conditional has to reflect that"
+
+Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
+
+diff -uNr libpciaccess-0.13.4.org/src/linux_sysfs.c libpciaccess-0.13.4/src/linux_sysfs.c
+--- libpciaccess-0.13.4.org/src/linux_sysfs.c 2015-05-01 06:44:47.000000000 +0200
++++ libpciaccess-0.13.4/src/linux_sysfs.c 2016-01-24 15:27:57.141562678 +0100
+@@ -49,7 +49,7 @@
+ #include <dirent.h>
+ #include <errno.h>
+
+-#if defined(__i386__) || defined(__x86_64__) || defined(__arm__)
++#if defined(__i386__) || defined(__x86_64__)
+ #include <sys/io.h>
+ #else
+ #define inb(x) -1
OpenPOWER on IntegriCloud