strace: Fix build with mips/mips64 on musl
SIGEMT doesnt exist on musl (From OE-Core rev: a18457e3318da21b642018897a0df29cb543deea) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
feb125eb17
commit
6d84986631
|
@ -0,0 +1,24 @@
|
|||
SIGEMT is not defined everywhere e.g musl does
|
||||
not define it. Therefore check it being defined
|
||||
before using it.
|
||||
|
||||
Fixes errors e.g.
|
||||
../../strace-4.13/tests/signal2name.c:45:7: error: 'SIGEMT' undeclared (first use in this function)
|
||||
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
Upstream-Status: Pending
|
||||
|
||||
Index: strace-4.13/tests/signal2name.c
|
||||
===================================================================
|
||||
--- strace-4.13.orig/tests/signal2name.c
|
||||
+++ strace-4.13/tests/signal2name.c
|
||||
@@ -42,7 +42,9 @@ signal2name(int sig)
|
||||
CASE(SIGEMT);
|
||||
CASE(SIGLOST);
|
||||
#elif defined MIPS
|
||||
+#ifdef SIGEMT
|
||||
CASE(SIGEMT);
|
||||
+#endif
|
||||
CASE(SIGIOT);
|
||||
CASE(SIGPWR);
|
||||
#else
|
|
@ -12,6 +12,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/strace/strace-${PV}.tar.xz \
|
|||
file://Makefile-ptest.patch \
|
||||
file://run-ptest \
|
||||
file://0001-Fix-build-when-using-non-glibc-libc-implementation-o.patch \
|
||||
file://mips-SIGEMT.patch \
|
||||
"
|
||||
|
||||
SRC_URI[md5sum] = "4b78c7febdd24c79d5147824d1a080a3"
|
||||
|
|
Loading…
Reference in New Issue