* [Buildroot] [PATCH] memstat: Add patch to fix compilation with musl libc
@ 2014-09-12 2:04 Maarten ter Huurne
2014-09-13 20:43 ` Thomas Petazzoni
0 siblings, 1 reply; 4+ messages in thread
From: Maarten ter Huurne @ 2014-09-12 2:04 UTC (permalink / raw)
To: buildroot
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 | 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
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH] memstat: Add patch to fix compilation with musl libc
2014-09-12 2:04 [Buildroot] [PATCH] memstat: Add patch to fix compilation with musl libc Maarten ter Huurne
@ 2014-09-13 20:43 ` Thomas Petazzoni
2014-09-15 2:53 ` [Buildroot] [PATCH v2] " Maarten ter Huurne
0 siblings, 1 reply; 4+ messages in thread
From: Thomas Petazzoni @ 2014-09-13 20:43 UTC (permalink / raw)
To: buildroot
Dear Maarten ter Huurne,
On Fri, 12 Sep 2014 04:04:09 +0200, Maarten ter Huurne wrote:
> 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
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
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH v2] memstat: Add patch to fix compilation with musl libc
2014-09-13 20:43 ` Thomas Petazzoni
@ 2014-09-15 2:53 ` Maarten ter Huurne
2014-09-24 21:59 ` Peter Korsgaard
0 siblings, 1 reply; 4+ messages in thread
From: Maarten ter Huurne @ 2014-09-15 2:53 UTC (permalink / raw)
To: buildroot
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
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",
--
1.8.4.5
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH v2] memstat: Add patch to fix compilation with musl libc
2014-09-15 2:53 ` [Buildroot] [PATCH v2] " Maarten ter Huurne
@ 2014-09-24 21:59 ` Peter Korsgaard
0 siblings, 0 replies; 4+ messages in thread
From: Peter Korsgaard @ 2014-09-24 21:59 UTC (permalink / raw)
To: buildroot
>>>>> "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.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-09-24 21:59 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-12 2:04 [Buildroot] [PATCH] memstat: Add patch to fix compilation with musl libc Maarten ter Huurne
2014-09-13 20:43 ` Thomas Petazzoni
2014-09-15 2:53 ` [Buildroot] [PATCH v2] " Maarten ter Huurne
2014-09-24 21:59 ` Peter Korsgaard
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.