diff options
Diffstat (limited to 'main/pciutils/fix-headers.patch')
-rw-r--r-- | main/pciutils/fix-headers.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/main/pciutils/fix-headers.patch b/main/pciutils/fix-headers.patch new file mode 100644 index 0000000000..94c805e6d5 --- /dev/null +++ b/main/pciutils/fix-headers.patch @@ -0,0 +1,27 @@ +--- pciutils-3.2.0.orig/lib/i386-io-linux.h ++++ pciutils-3.2.0/lib/i386-io-linux.h +@@ -6,11 +6,7 @@ + * Can be freely distributed and used under the terms of the GNU GPL. + */ + +-#ifdef __GLIBC__ + #include <sys/io.h> +-#else +-#include <asm/io.h> +-#endif + + static int + intel_setup_io(struct pci_access *a UNUSED) +Only in pciutils-3.2.0: lib/i386-ports.o +Only in pciutils-3.2.0: lib/libpci.a +--- pciutils-3.2.0.orig/lib/pread.h ++++ pciutils-3.2.0/lib/pread.h +@@ -12,7 +12,7 @@ + * don't define it. + */ + +-#if defined(__GLIBC__) && __GLIBC__ == 2 && __GLIBC_MINOR__ > 0 ++#if 1 || defined(__GLIBC__) && __GLIBC__ == 2 && __GLIBC_MINOR__ > 0 + /* glibc 2.1 or newer -> pread/pwrite supported automatically */ + + #elif defined(i386) && defined(__GLIBC__) |