aboutsummaryrefslogtreecommitdiffstats
path: root/main/libpciaccess/limits_h.patch
diff options
context:
space:
mode:
authorFernando Seiti Furusato <ferseiti@linux.vnet.ibm.com>2017-01-27 10:10:37 -0200
committerJakub Jirutka <jakub@jirutka.cz>2017-02-05 23:00:40 +0100
commit3b099e78011f786895dc48df05bcb56cfa7c4d59 (patch)
treedc5e8425c03d1480c1333b8093d1c41613802470 /main/libpciaccess/limits_h.patch
parent10555327c111bdcc912d559470aac5860a32d034 (diff)
downloadaports-3b099e78011f786895dc48df05bcb56cfa7c4d59.tar.bz2
aports-3b099e78011f786895dc48df05bcb56cfa7c4d59.tar.xz
main/libpciaccess: include limits.h
The package libpciaccess uses the macro PATH_MAX, which is defined in limits.h and needs to be explicitly included in some archs. Signed-off-by: Fernando Seiti Furusato <ferseiti@linux.vnet.ibm.com>
Diffstat (limited to 'main/libpciaccess/limits_h.patch')
-rw-r--r--main/libpciaccess/limits_h.patch10
1 files changed, 10 insertions, 0 deletions
diff --git a/main/libpciaccess/limits_h.patch b/main/libpciaccess/limits_h.patch
new file mode 100644
index 0000000000..6e0d7eeab5
--- /dev/null
+++ b/main/libpciaccess/limits_h.patch
@@ -0,0 +1,10 @@
+--- a/src/linux_sysfs.c
++++ b/src/linux_sysfs.c
+@@ -48,6 +48,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>