aboutsummaryrefslogtreecommitdiffstats
path: root/main/libpciaccess/fix-includes.patch
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-09-30 12:51:19 +0000
committerTimo Teräs <timo.teras@iki.fi>2013-09-30 12:51:19 +0000
commit02e3b0af91057fe8113a3a4727f08a14fb075b55 (patch)
tree897402549d8000010acdef82bd015b6ae6bd1018 /main/libpciaccess/fix-includes.patch
parent847cb13cff14c0d843794b6c2fa88ef80c1e7c7a (diff)
downloadaports-02e3b0af91057fe8113a3a4727f08a14fb075b55.tar.bz2
aports-02e3b0af91057fe8113a3a4727f08a14fb075b55.tar.xz
main/libpciaccess: fix musl build
Diffstat (limited to 'main/libpciaccess/fix-includes.patch')
-rw-r--r--main/libpciaccess/fix-includes.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/main/libpciaccess/fix-includes.patch b/main/libpciaccess/fix-includes.patch
new file mode 100644
index 0000000000..6685ee80f4
--- /dev/null
+++ b/main/libpciaccess/fix-includes.patch
@@ -0,0 +1,21 @@
+--- libpciaccess-0.13.2.orig/src/linux_sysfs.c
++++ libpciaccess-0.13.2/src/linux_sysfs.c
+@@ -44,6 +44,7 @@
+ #include <sys/mman.h>
+ #include <dirent.h>
+ #include <errno.h>
++#include <limits.h>
+
+ #if defined(__i386__) || defined(__x86_64__) || defined(__arm__)
+ #include <sys/io.h>
+--- libpciaccess-0.13.2.orig/src/pciaccess_private.h
++++ libpciaccess-0.13.2/src/pciaccess_private.h
+@@ -42,7 +42,7 @@
+ * know of any OS we support where this isn't available in a sufficiently
+ * new version, so warn unconditionally.
+ */
+-#include <sys/fcntl.h>
++#include <fcntl.h>
+
+ #ifndef O_CLOEXEC
+ #warning O_CLOEXEC not available, please upgrade.