diff mbox

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

Message ID 1410749618-6304-1-git-send-email-maarten@treewalker.org
State Accepted
Commit 7989e053279034fc0a6e29cfc5ffe0b32bcae2e7
Headers show

Commit Message

Maarten ter Huurne Sept. 15, 2014, 2:53 a.m. UTC
PATH_MAX was undefined because of a missing #include.

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

Comments

Peter Korsgaard Sept. 24, 2014, 9:59 p.m. UTC | #1
>>>>> "Maarten" == Maarten ter Huurne <maarten@treewalker.org> writes:

 > PATH_MAX was undefined because of a missing #include.
 > Signed-off-by: Maarten ter Huurne <maarten@treewalker.org>

Committed, thanks.
diff mbox

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..0c3617a
--- /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",