blob: 640ae9c3b95068e397565ebe6b4cc2dc0ffddf8c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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
}
|