Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | From 6bd2f7f92eae713663f4e13f6e2cb23526607b8c Mon Sep 17 00:00:00 2001 |
| 2 | From: Felix Janda <felix.janda@posteo.de> |
| 3 | Date: Fri, 1 May 2015 16:36:50 +0200 |
| 4 | Subject: [PATCH 3/4] linux_sysfs.c: Include <limits.h> for PATH_MAX |
| 5 | |
| 6 | Fixes compilation with musl libc. |
| 7 | |
| 8 | Tested-by: Bernd Kuhls <bernd.kuhls@t-online.de> |
| 9 | Signed-off-by: Felix Janda <felix.janda@posteo.de> |
| 10 | Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> |
| 11 | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> |
| 12 | --- |
| 13 | Upstream-Status: Backport |
| 14 | |
| 15 | src/linux_sysfs.c | 1 + |
| 16 | 1 file changed, 1 insertion(+) |
| 17 | |
| 18 | diff --git a/src/linux_sysfs.c b/src/linux_sysfs.c |
| 19 | index 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 | -- |
| 31 | 2.1.4 |
| 32 | |