diff options
author | Khem Raj <raj.khem@gmail.com> | 2016-01-09 19:42:19 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-01-24 09:40:30 +0000 |
commit | 92e6a7a8736f793f251b5ab6e8dea48c30fe8e68 (patch) | |
tree | 133f2e212607180a201fa1255de5035f59b93b32 /meta/recipes-bsp/apmd | |
parent | 5d661c538d9a145463da568b792c778601a376d7 (diff) | |
download | poky-92e6a7a8736f793f251b5ab6e8dea48c30fe8e68.tar.gz |
apmd: Fix build with musl
Fix error like below
| apmd.c:372:41: error: use of undeclared identifier '__WCOREFLAG'
| status = __W_EXITCODE(0, SIGTERM) | __WCOREFLAG;
| ^
| apmd.c:392:41: error: use of undeclared identifier '__WCOREFLAG'
| status = __W_EXITCODE(0, SIGTERM) | __WCOREFLAG;
(From OE-Core rev: b9c870a25757ab11f4167c076449a3de537247cf)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-bsp/apmd')
-rw-r--r-- | meta/recipes-bsp/apmd/apmd/wexitcode.patch | 26 | ||||
-rw-r--r-- | meta/recipes-bsp/apmd/apmd_3.2.2-15.bb | 1 |
2 files changed, 27 insertions, 0 deletions
diff --git a/meta/recipes-bsp/apmd/apmd/wexitcode.patch b/meta/recipes-bsp/apmd/apmd/wexitcode.patch new file mode 100644 index 0000000000..c5faa85fa7 --- /dev/null +++ b/meta/recipes-bsp/apmd/apmd/wexitcode.patch | |||
@@ -0,0 +1,26 @@ | |||
1 | Define non-posix W* funcitons | ||
2 | |||
3 | C libraries like musl dont define them | ||
4 | |||
5 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
6 | Upstream-Status: Pending | ||
7 | |||
8 | Index: apmd-3.2.2.orig/apmd.c | ||
9 | =================================================================== | ||
10 | --- apmd-3.2.2.orig.orig/apmd.c | ||
11 | +++ apmd-3.2.2.orig/apmd.c | ||
12 | @@ -55,6 +55,14 @@ | ||
13 | #define MINIMUM_RATE_CALC_TIME 120 | ||
14 | #endif | ||
15 | |||
16 | +#ifndef _POSIX_SOURCE | ||
17 | + | ||
18 | +#define __WCOREFLAG 0200 | ||
19 | +#define __WCOREDUMP(x) (_W_INT(x) & __WCOREFLAG) | ||
20 | +#define __W_EXITCODE(ret, sig) ((ret) << 8 | (sig)) | ||
21 | + | ||
22 | +#endif | ||
23 | + | ||
24 | /* | ||
25 | * For the verbosity level feature to be useful, | ||
26 | * we rely on the fact that syslog.h assigns adjacent | ||
diff --git a/meta/recipes-bsp/apmd/apmd_3.2.2-15.bb b/meta/recipes-bsp/apmd/apmd_3.2.2-15.bb index 9492c6994e..a932375205 100644 --- a/meta/recipes-bsp/apmd/apmd_3.2.2-15.bb +++ b/meta/recipes-bsp/apmd/apmd_3.2.2-15.bb | |||
@@ -13,6 +13,7 @@ SRC_URI = "${DEBIAN_MIRROR}/main/a/apmd/apmd_3.2.2.orig.tar.gz;name=tarball \ | |||
13 | file://legacy.patch \ | 13 | file://legacy.patch \ |
14 | file://libtool.patch \ | 14 | file://libtool.patch \ |
15 | file://unlinux.patch \ | 15 | file://unlinux.patch \ |
16 | file://wexitcode.patch \ | ||
16 | file://init \ | 17 | file://init \ |
17 | file://default \ | 18 | file://default \ |
18 | file://apmd_proxy \ | 19 | file://apmd_proxy \ |