aboutsummaryrefslogtreecommitdiff
path: root/package/memstat
diff options
context:
space:
mode:
authorGravatar Maarten ter Huurne <maarten@treewalker.org>2014-09-15 04:53:38 +0200
committerGravatar Peter Korsgaard <peter@korsgaard.com>2014-09-24 23:58:34 +0200
commit7989e053279034fc0a6e29cfc5ffe0b32bcae2e7 (patch)
treeb56537bd6b87c507c1cab307c4d6230f1309269c /package/memstat
parent5f00e374903fccca855ec0b9fa63aafda3df40a1 (diff)
downloadbuildroot-7989e053279034fc0a6e29cfc5ffe0b32bcae2e7.tar.gz
buildroot-7989e053279034fc0a6e29cfc5ffe0b32bcae2e7.tar.bz2
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>
Diffstat (limited to 'package/memstat')
-rw-r--r--package/memstat/memstat-0001-PATH_MAX.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/package/memstat/memstat-0001-PATH_MAX.patch b/package/memstat/memstat-0001-PATH_MAX.patch
new file mode 100644
index 0000000000..0c3617a61b
--- /dev/null
+++ b/package/memstat/memstat-0001-PATH_MAX.patch
@@ -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",