Skip to contentSkip to conversation

memstat: Add patch to fix compilation with musl libc

PATCH New Maarten ter Huurne 3 participants 4 messages Sep 12, 2014 – Sep 24, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 memstat: Add patch to fix compilation with musl libc

PATH_MAX was undefined because of a missing #include.

---
 package/memstat/memstat-0001-PATH_MAX.patch | 10 ++++++++++
 1 file changed, 10 insertions(+)
 create mode 100644 package/memstat/memstat-0001-PATH_MAX.patch
package/memstat/memstat-0001-PATH_MAX.patch new file +10 -0
new file mode 100644
index 0000000..7143f6d
@@ -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",
Signature · 1 line
1.8.4.5
#1 lore raw

PATCH 1/1 memstat: Add patch to fix compilation with musl libc

Dear Maarten ter Huurne,

package/memstat/memstat-0001-PATH_MAX.patch

Quoted 5 lines · Maarten ter Huurne
package/memstat/memstat-0001-PATH_MAX.patch new file +0 -0
new file mode 100644
index 0000000..7143f6d

As usual, missing description + SoB in the patch itself.

Also, when you submit a new version for a patch, please make sure to use --subject-prefix="PATCHv2" when generating or sending the patches. This will use [PATCHv2] instead of [PATCH] in the e-mail topic, which helps us track what version is the latest one.

Thanks,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#2 lore raw

PATCH v2 1/1 memstat: Add patch to fix compilation with musl libc

PATH_MAX was undefined because of a missing #include.

---
 package/memstat/memstat-0001-PATH_MAX.patch | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 package/memstat/memstat-0001-PATH_MAX.patch
package/memstat/memstat-0001-PATH_MAX.patch new file +14 -0
new file mode 100644
index 0000000..0c3617a
@@ -0,0 +1,14 @@
+Add missing #include for PATH_MAX
+
+Signed-off-by: Maarten ter Huurne <[email protected]>
+
+--- 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",
Signature · 1 line
1.8.4.5
#3 lore raw

PATCH v2 1/1 memstat: Add patch to fix compilation with musl libc

Quoted 4 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Maarten" == Maarten ter Huurne <[email protected]> writes:

PATH_MAX was undefined because of a missing #include.

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard