[Buildroot] [PATCH] memstat: Add patch to fix compilation with musl libc

Maarten ter Huurne maarten at treewalker.org
Fri Sep 12 02:04:09 UTC 2014


PATH_MAX was undefined because of a missing #include.

Signed-off-by: Maarten ter Huurne <maarten at treewalker.org>
---
 package/memstat/memstat-0001-PATH_MAX.patch | 10 ++++++++++
 1 file changed, 10 insertions(+)
 create mode 100644 package/memstat/memstat-0001-PATH_MAX.patch

diff --git a/package/memstat/memstat-0001-PATH_MAX.patch b/package/memstat/memstat-0001-PATH_MAX.patch
new file mode 100644
index 0000000..7143f6d
--- /dev/null
+++ b/package/memstat/memstat-0001-PATH_MAX.patch
@@ -0,0 +1,10 @@
+--- 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",
-- 
1.8.4.5



More information about the buildroot mailing list