summaryrefslogtreecommitdiffstats
path: root/meta/recipes-bsp/apmd/apmd/wexitcode.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-bsp/apmd/apmd/wexitcode.patch')
-rw-r--r--meta/recipes-bsp/apmd/apmd/wexitcode.patch26
1 files changed, 0 insertions, 26 deletions
diff --git a/meta/recipes-bsp/apmd/apmd/wexitcode.patch b/meta/recipes-bsp/apmd/apmd/wexitcode.patch
deleted file mode 100644
index c5faa85fa7..0000000000
--- a/meta/recipes-bsp/apmd/apmd/wexitcode.patch
+++ /dev/null
@@ -1,26 +0,0 @@
1Define non-posix W* funcitons
2
3C libraries like musl dont define them
4
5Signed-off-by: Khem Raj <raj.khem@gmail.com>
6Upstream-Status: Pending
7
8Index: 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