kumquat-buildroot/package/libpciaccess/0001-limits_h.patch
Bernd Kuhls c6514c83e7 package/libpciaccess: fix musl build
Also added note about upstream commit to patch 0001.

Fixes
http://autobuild.buildroot.net/results/e86/e869e08779626ac578017e6b34a82adf156d12f8/
http://autobuild.buildroot.net/results/0bf/0bf803654e7298d5cd0b31fc55b1babdcd2f8765/
http://autobuild.buildroot.net/results/f5a/f5a516cf6c25af89000019b6789d5a003099cdff/

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2016-01-26 21:43:04 +01:00

23 lines
833 B
Diff

Fix compilation error with musl-based toolchain
linux_sysfs.c:751:15: error: 'PATH_MAX' undeclared (first use in this function)
char name[PATH_MAX];
Patch applied upstream:
http://cgit.freedesktop.org/xorg/lib/libpciaccess/commit/?id=8ea3af620a2d4ad5648917b4a0ef2b23ff566774
Signed-off-by: Felix Janda <felix.janda at posteo.de>
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
diff -uNr libpciaccess-0.13.3.org/src/linux_sysfs.c libpciaccess-0.13.3/src/linux_sysfs.c
--- libpciaccess-0.13.3.org/src/linux_sysfs.c 2015-02-04 00:59:14.000000000 +0100
+++ libpciaccess-0.13.3/src/linux_sysfs.c 2015-04-10 21:57:35.000000000 +0200
@@ -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>