9afa203cc460d8c091d0d04311ba5227d08fe471
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / libpciaccess / 0001-limits_h.patch
1 Fix compilation error with musl-based toolchain
2
3 linux_sysfs.c:751:15: error: 'PATH_MAX' undeclared (first use in this function)
4      char name[PATH_MAX];
5
6 Patch already sent upstream by Felix Janda
7 http://lists.x.org/archives/xorg-devel/2014-December/044723.html
8
9 Signed-off-by: Felix Janda <felix.janda at posteo.de>
10 Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
11
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>
20  
21  #if defined(__i386__) || defined(__x86_64__) || defined(__arm__)
22  #include <sys/io.h>