[PATCH RESEND libpciaccess] linux_sysfs.c: Include <limits.h> for PATH_MAX

Felix Janda felix.janda at posteo.de
Fri May 1 07:36:50 PDT 2015


Fixes compilation with musl libc.

Tested-by: Bernd Kuhls <bernd.kuhls at t-online.de>
Signed-off-by: Felix Janda <felix.janda at posteo.de>
---
 src/linux_sysfs.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/linux_sysfs.c b/src/linux_sysfs.c
index 8fca65e..1c8d3e3 100644
--- a/src/linux_sysfs.c
+++ b/src/linux_sysfs.c
@@ -41,6 +41,7 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>
+#include <limits.h>
 #include <sys/mman.h>
 #include <dirent.h>
 #include <errno.h>
-- 
2.0.5



More information about the xorg-devel mailing list