0001-musl-arm.patch 719 B

123456789101112131415161718192021
  1. Fix musl build
  2. Inspired by http://patchwork.openembedded.org/patch/111661/
  3. "inb/outb are implemented for ARM on glibc but not on linux in general
  4. therefore the conditional has to reflect that"
  5. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
  6. diff -uNr libpciaccess-0.13.4.org/src/linux_sysfs.c libpciaccess-0.13.4/src/linux_sysfs.c
  7. --- libpciaccess-0.13.4.org/src/linux_sysfs.c 2015-05-01 06:44:47.000000000 +0200
  8. +++ libpciaccess-0.13.4/src/linux_sysfs.c 2016-01-24 15:27:57.141562678 +0100
  9. @@ -49,7 +49,7 @@
  10. #include <dirent.h>
  11. #include <errno.h>
  12. -#if defined(__i386__) || defined(__x86_64__) || defined(__arm__)
  13. +#if defined(__i386__) || defined(__x86_64__)
  14. #include <sys/io.h>
  15. #else
  16. #define inb(x) -1