summaryrefslogtreecommitdiff
path: root/package/libunwind/patches/patch-tests_test-coredump-unwind_c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2017-04-17 19:34:17 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2017-04-17 19:34:17 +0200
commitd14fb7f931dd8ef08c70dbb9946317cfd8704a0c (patch)
treefc37a5bc9d8f59b16c5408e0c414f097629f3a1c /package/libunwind/patches/patch-tests_test-coredump-unwind_c
parent2332e65f19e7fded9e81463f9fcefe53b98967fe (diff)
libunwind: fix compile
Diffstat (limited to 'package/libunwind/patches/patch-tests_test-coredump-unwind_c')
-rw-r--r--package/libunwind/patches/patch-tests_test-coredump-unwind_c21
1 files changed, 21 insertions, 0 deletions
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 <grp.h>
+
+ /* For SIGSEGV handler code */
++#ifndef __UCLIBC__
+ #include <execinfo.h>
++#endif
+ #include <sys/ucontext.h>
+
+ #include <libunwind-coredump.h>
+@@ -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
+ }