diff options
Diffstat (limited to 'meta/recipes-devtools/strace/strace')
-rw-r--r-- | meta/recipes-devtools/strace/strace/mips-SIGEMT.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/meta/recipes-devtools/strace/strace/mips-SIGEMT.patch b/meta/recipes-devtools/strace/strace/mips-SIGEMT.patch new file mode 100644 index 0000000000..b24378bfee --- /dev/null +++ b/meta/recipes-devtools/strace/strace/mips-SIGEMT.patch | |||
@@ -0,0 +1,24 @@ | |||
1 | SIGEMT is not defined everywhere e.g musl does | ||
2 | not define it. Therefore check it being defined | ||
3 | before using it. | ||
4 | |||
5 | Fixes errors e.g. | ||
6 | ../../strace-4.13/tests/signal2name.c:45:7: error: 'SIGEMT' undeclared (first use in this function) | ||
7 | |||
8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
9 | Upstream-Status: Pending | ||
10 | |||
11 | Index: strace-4.13/tests/signal2name.c | ||
12 | =================================================================== | ||
13 | --- strace-4.13.orig/tests/signal2name.c | ||
14 | +++ strace-4.13/tests/signal2name.c | ||
15 | @@ -42,7 +42,9 @@ signal2name(int sig) | ||
16 | CASE(SIGEMT); | ||
17 | CASE(SIGLOST); | ||
18 | #elif defined MIPS | ||
19 | +#ifdef SIGEMT | ||
20 | CASE(SIGEMT); | ||
21 | +#endif | ||
22 | CASE(SIGIOT); | ||
23 | CASE(SIGPWR); | ||
24 | #else | ||