blob: f513c8e59c8a776cae1888d4759a1957deb33bb4 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001From 6bd2f7f92eae713663f4e13f6e2cb23526607b8c Mon Sep 17 00:00:00 2001
2From: Felix Janda <felix.janda@posteo.de>
3Date: Fri, 1 May 2015 16:36:50 +0200
4Subject: [PATCH 3/4] linux_sysfs.c: Include <limits.h> for PATH_MAX
5
6Fixes compilation with musl libc.
7
8Tested-by: Bernd Kuhls <bernd.kuhls@t-online.de>
9Signed-off-by: Felix Janda <felix.janda@posteo.de>
10Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
11Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
12---
13Upstream-Status: Backport
14
15 src/linux_sysfs.c | 1 +
16 1 file changed, 1 insertion(+)
17
18diff --git a/src/linux_sysfs.c b/src/linux_sysfs.c
19index 50d94cf..3f95e53 100644
20--- a/src/linux_sysfs.c
21+++ b/src/linux_sysfs.c
22@@ -45,6 +45,7 @@
23 #include <sys/types.h>
24 #include <sys/stat.h>
25 #include <fcntl.h>
26+#include <limits.h>
27 #include <sys/mman.h>
28 #include <dirent.h>
29 #include <errno.h>
30--
312.1.4
32