package/libpciaccess: Fix compilation error with musl-based toolchain
authorBernd Kuhls <bernd.kuhls@t-online.de>
Fri, 10 Apr 2015 20:06:45 +0000 (22:06 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Fri, 10 Apr 2015 20:18:56 +0000 (22:18 +0200)
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/libpciaccess/0001-limits_h.patch [new file with mode: 0644]

diff --git a/package/libpciaccess/0001-limits_h.patch b/package/libpciaccess/0001-limits_h.patch
new file mode 100644 (file)
index 0000000..9afa203
--- /dev/null
@@ -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 <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>