OSDN Git Service

linux_sysfs.c: Include <limits.h> for PATH_MAX
authorFelix Janda <felix.janda@posteo.de>
Fri, 1 May 2015 14:36:50 +0000 (16:36 +0200)
committerAlan Coopersmith <alan.coopersmith@oracle.com>
Tue, 5 May 2015 04:11:53 +0000 (21:11 -0700)
Fixes compilation with musl libc.

Tested-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Felix Janda <felix.janda@posteo.de>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
src/linux_sysfs.c

index 50d94cf..3f95e53 100644 (file)
@@ -45,6 +45,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>