pciutils: unbreak musl build; patch from Alpine.

This commit is contained in:
Juan RP 2014-11-10 15:32:27 +01:00
parent 5d6e5b8227
commit e6948d1aa0
2 changed files with 28 additions and 1 deletions

View file

@ -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 <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
--- 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__)

View file

@ -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"