diff options
author | Khem Raj <raj.khem@gmail.com> | 2017-03-19 22:31:51 -0700 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2017-03-31 13:25:58 +0200 |
commit | cafa3a45425108ecbae0ef9324a6228c145fc9f8 (patch) | |
tree | b6a8cbaf8c6f2a36dc9386205992e826b3ea038a | |
parent | bfc16ec09d18b468f7dd73d8fca2c199d9c55417 (diff) | |
download | meta-openembedded-cafa3a45425108ecbae0ef9324a6228c145fc9f8.tar.gz |
memstat: Fix build with musl
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
-rw-r--r-- | meta-oe/recipes-devtools/memstat/memstat/0001-Include-limits.h-for-PATH_MAX-definition.patch | 29 | ||||
-rw-r--r-- | meta-oe/recipes-devtools/memstat/memstat_1.0.bb | 3 |
2 files changed, 31 insertions, 1 deletions
diff --git a/meta-oe/recipes-devtools/memstat/memstat/0001-Include-limits.h-for-PATH_MAX-definition.patch b/meta-oe/recipes-devtools/memstat/memstat/0001-Include-limits.h-for-PATH_MAX-definition.patch new file mode 100644 index 000000000..9a0a17e0e --- /dev/null +++ b/meta-oe/recipes-devtools/memstat/memstat/0001-Include-limits.h-for-PATH_MAX-definition.patch | |||
@@ -0,0 +1,29 @@ | |||
1 | From 4b6c957372314562bf7b9117103e3a08643eb7b8 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sat, 18 Mar 2017 17:47:28 -0700 | ||
4 | Subject: [PATCH] Include limits.h for PATH_MAX definition | ||
5 | |||
6 | Fixes | ||
7 | |||
8 | error: use of undeclared identifier 'PATH_MAX' | ||
9 | |||
10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
11 | --- | ||
12 | memstat.c | 1 + | ||
13 | 1 file changed, 1 insertion(+) | ||
14 | |||
15 | diff --git a/memstat.c b/memstat.c | ||
16 | index 5039fb0..3ff6ee4 100644 | ||
17 | --- a/memstat.c | ||
18 | +++ b/memstat.c | ||
19 | @@ -19,6 +19,7 @@ | ||
20 | #include <unistd.h> | ||
21 | #include <getopt.h> | ||
22 | #include <errno.h> | ||
23 | +#include <limits.h> | ||
24 | |||
25 | /* blacklist devices that just map physical memory */ | ||
26 | char *blacklist[] = { | ||
27 | -- | ||
28 | 2.12.0 | ||
29 | |||
diff --git a/meta-oe/recipes-devtools/memstat/memstat_1.0.bb b/meta-oe/recipes-devtools/memstat/memstat_1.0.bb index 825215372..91a9200c3 100644 --- a/meta-oe/recipes-devtools/memstat/memstat_1.0.bb +++ b/meta-oe/recipes-devtools/memstat/memstat_1.0.bb | |||
@@ -13,7 +13,8 @@ S = "${WORKDIR}/memstattool" | |||
13 | LIC_FILES_CHKSUM = "file://debian/copyright;md5=87be186443b1ac2cfa466f475e1ee0cb" | 13 | LIC_FILES_CHKSUM = "file://debian/copyright;md5=87be186443b1ac2cfa466f475e1ee0cb" |
14 | 14 | ||
15 | SRC_URI = "http://sourceforge.net/projects/memstattool/files/memstat_${PV}.tar.gz \ | 15 | SRC_URI = "http://sourceforge.net/projects/memstattool/files/memstat_${PV}.tar.gz \ |
16 | " | 16 | file://0001-Include-limits.h-for-PATH_MAX-definition.patch \ |
17 | " | ||
17 | 18 | ||
18 | SRC_URI[md5sum] = "2c3acc0c62b2a18f6601b84e54aa7462" | 19 | SRC_URI[md5sum] = "2c3acc0c62b2a18f6601b84e54aa7462" |
19 | SRC_URI[sha256sum] = "245d5fc7fb87bcfd14486cd34917cae2856e799559ac568434af12c4852bce94" | 20 | SRC_URI[sha256sum] = "245d5fc7fb87bcfd14486cd34917cae2856e799559ac568434af12c4852bce94" |