diff --git a/srcpkgs/pciutils/patches/fix-headers.patch b/srcpkgs/pciutils/patches/fix-headers.patch new file mode 100644 index 00000000000..f0dca0d9aa1 --- /dev/null +++ b/srcpkgs/pciutils/patches/fix-headers.patch @@ -0,0 +1,27 @@ +--- lib/i386-io-linux.h ++++ 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 +-#else +-#include +-#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 +--- lib/pread.h ++++ 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__) diff --git a/srcpkgs/pciutils/template b/srcpkgs/pciutils/template index 490d9684ff0..5348989567e 100644 --- a/srcpkgs/pciutils/template +++ b/srcpkgs/pciutils/template @@ -1,7 +1,7 @@ # Template file for 'pciutils' pkgname=pciutils version=3.2.1 -revision=2 +revision=3 hostmakedepends="pkg-config" makedepends="zlib-devel libkmod-devel" depends="hwids"