Skip to contentSkip to conversation

package/libpciaccess: Fix compilation error with musl-based toolchain

PATCH New Bernd Kuhls 2 participants 2 messages Apr 10, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/libpciaccess: Fix compilation error with musl-based toolchain

---
 package/libpciaccess/0001-limits_h.patch |   22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 package/libpciaccess/0001-limits_h.patch
package/libpciaccess/0001-limits_h.patch new file +22 -0
new file mode 100644
index 0000000..e8cfee9
@@ -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 <[email protected]>
+Signed-off-by: Bernd Kuhls <[email protected]>
+
+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>
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH 1/1 package/libpciaccess: Fix compilation error with musl-based toolchain

Dear Bernd Kuhls,

Quoted 6 lines · Bernd Kuhls
---
 package/libpciaccess/0001-limits_h.patch |   22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 package/libpciaccess/0001-limits_h.patch

Applied, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com