From db0fc30960d65ddc9a8510e2c8a4f427a2636fa5 Mon Sep 17 00:00:00 2001 From: Bernd Kuhls Date: Fri, 10 Apr 2015 22:06:45 +0200 Subject: [PATCH] package/libpciaccess: Fix compilation error with musl-based toolchain Signed-off-by: Bernd Kuhls Signed-off-by: Thomas Petazzoni --- package/libpciaccess/0001-limits_h.patch | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 package/libpciaccess/0001-limits_h.patch diff --git a/package/libpciaccess/0001-limits_h.patch b/package/libpciaccess/0001-limits_h.patch new file mode 100644 index 0000000000..9afa203cc4 --- /dev/null +++ b/package/libpciaccess/0001-limits_h.patch @@ -0,0 +1,22 @@ +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 already sent upstream by Felix Janda +http://lists.x.org/archives/xorg-devel/2014-December/044723.html + +Signed-off-by: Felix Janda +Signed-off-by: Bernd Kuhls + +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 + #include + #include ++#include + + #if defined(__i386__) || defined(__x86_64__) || defined(__arm__) + #include -- 2.30.2