change error report handler for a correct display on recent dialog colors (it uses...
[dragora.git] / patches / libpciaccess / 0001-musl-arm.patch
blob0077f451bf8865286359702f7d66f6852957d850
1 Fix musl build
3 Inspired by http://patchwork.openembedded.org/patch/111661/
4 "inb/outb are implemented for ARM on glibc but not on linux in general
5 therefore the conditional has to reflect that"
7 Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
9 diff -uNr libpciaccess-0.13.4.org/src/linux_sysfs.c libpciaccess-0.13.4/src/linux_sysfs.c
10 --- libpciaccess-0.13.4.org/src/linux_sysfs.c 2015-05-01 06:44:47.000000000 +0200
11 +++ libpciaccess-0.13.4/src/linux_sysfs.c 2016-01-24 15:27:57.141562678 +0100
12 @@ -49,7 +49,7 @@
13 #include <dirent.h>
14 #include <errno.h>
16 -#if defined(__i386__) || defined(__x86_64__) || defined(__arm__)
17 +#if defined(__i386__) || defined(__x86_64__)
18 #include <sys/io.h>
19 #else
20 #define inb(x) -1