python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / libpciaccess / 0001-limits_h.patch
blobc5c8444a59afc494a02f0e918c4a7b1cf2c9dd21
1 Fix compilation error with musl-based toolchain
3 linux_sysfs.c:751:15: error: 'PATH_MAX' undeclared (first use in this function)
4 char name[PATH_MAX];
6 Patch applied upstream:
7 http://cgit.freedesktop.org/xorg/lib/libpciaccess/commit/?id=8ea3af620a2d4ad5648917b4a0ef2b23ff566774
9 Signed-off-by: Felix Janda <felix.janda at posteo.de>
10 Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
12 diff -uNr libpciaccess-0.13.3.org/src/linux_sysfs.c libpciaccess-0.13.3/src/linux_sysfs.c
13 --- libpciaccess-0.13.3.org/src/linux_sysfs.c 2015-02-04 00:59:14.000000000 +0100
14 +++ libpciaccess-0.13.3/src/linux_sysfs.c 2015-04-10 21:57:35.000000000 +0200
15 @@ -44,6 +44,7 @@
16 #include <sys/mman.h>
17 #include <dirent.h>
18 #include <errno.h>
19 +#include <limits.h>
21 #if defined(__i386__) || defined(__x86_64__) || defined(__arm__)
22 #include <sys/io.h>