Christian Wiese 11 years ago
parent
commit
24972b44dd
  1. 12
      base/musl/pkg/pciutils/pciutils-pread.patch
  2. 1
      base/musl/pkg/pciutils/pciutils.conf

12
base/musl/pkg/pciutils/pciutils-pread.patch

@ -0,0 +1,12 @@
--- pciutils-3.2.1/lib/pread.h 2006-05-05 12:18:24.000000000 +0000
+++ pciutils-3.2.1/lib/pread.h 2014-01-01 16:09:44.653087473 +0000
@@ -12,7 +12,7 @@
* don't define it.
*/
-#if defined(__GLIBC__) && __GLIBC__ == 2 && __GLIBC_MINOR__ > 0
+#if defined(HAVE_PREAD) || (defined(__GLIBC__) && __GLIBC__ == 2 && __GLIBC_MINOR__ > 0)
/* glibc 2.1 or newer -> pread/pwrite supported automatically */
#elif defined(i386) && defined(__GLIBC__)

1
base/musl/pkg/pciutils/pciutils.conf

@ -0,0 +1 @@
var_append CC_WRAPPER_INSERT ' ' "-DHAVE_PREAD"
Loading…
Cancel
Save