From d14fb7f931dd8ef08c70dbb9946317cfd8704a0c Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Mon, 17 Apr 2017 19:34:17 +0200 Subject: libunwind: fix compile --- .../patches/patch-tests_test-coredump-unwind_c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 package/libunwind/patches/patch-tests_test-coredump-unwind_c (limited to 'package/libunwind/patches/patch-tests_test-coredump-unwind_c') diff --git a/package/libunwind/patches/patch-tests_test-coredump-unwind_c b/package/libunwind/patches/patch-tests_test-coredump-unwind_c new file mode 100644 index 000000000..640ae9c3b --- /dev/null +++ b/package/libunwind/patches/patch-tests_test-coredump-unwind_c @@ -0,0 +1,21 @@ +--- libunwind-1.2.orig/tests/test-coredump-unwind.c 2017-01-13 16:58:24.000000000 +0100 ++++ libunwind-1.2/tests/test-coredump-unwind.c 2017-04-17 18:52:13.963470134 +0200 +@@ -57,7 +57,9 @@ + #include + + /* For SIGSEGV handler code */ ++#ifndef __UCLIBC__ + #include ++#endif + #include + + #include +@@ -242,7 +244,7 @@ void handle_sigsegv(int sig, siginfo_t * + void *array[50]; + int size; + size = backtrace(array, 50); +-#ifdef __linux__ ++#if defined __linux__ && !defined __UCLIBC__ + backtrace_symbols_fd(array, size, 2); + #endif + } -- cgit v1.2.3