memstat: Add patch to fix compilation with musl libc
PATH_MAX was undefined because of a missing #include. Signed-off-by: Maarten ter Huurne <maarten@treewalker.org> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
5f00e37490
commit
7989e05327
14
package/memstat/memstat-0001-PATH_MAX.patch
Normal file
14
package/memstat/memstat-0001-PATH_MAX.patch
Normal file
@ -0,0 +1,14 @@
|
||||
Add missing #include for PATH_MAX
|
||||
|
||||
Signed-off-by: Maarten ter Huurne <maarten@treewalker.org>
|
||||
|
||||
--- memstat-0.8.org/memstat.c 2009-06-08 14:38:05.000000000 +0200
|
||||
+++ memstat-0.8/memstat.c 2014-09-12 03:55:43.096035374 +0200
|
||||
@@ -19,6 +19,7 @@
|
||||
#include <unistd.h>
|
||||
#include <getopt.h>
|
||||
#include <errno.h>
|
||||
+#include <limits.h>
|
||||
|
||||
/* blacklist devices that just map physical memory */
|
||||
char *blacklist[] = { "/dev/mem",
|
Loading…
Reference in New Issue
Block a user