patch-tests_test-coredump-unwind_c 606 B

123456789101112131415161718192021
  1. --- libunwind-1.2.orig/tests/test-coredump-unwind.c 2017-01-13 16:58:24.000000000 +0100
  2. +++ libunwind-1.2/tests/test-coredump-unwind.c 2017-04-17 18:52:13.963470134 +0200
  3. @@ -57,7 +57,9 @@
  4. #include <grp.h>
  5. /* For SIGSEGV handler code */
  6. +#ifndef __UCLIBC__
  7. #include <execinfo.h>
  8. +#endif
  9. #include <sys/ucontext.h>
  10. #include <libunwind-coredump.h>
  11. @@ -242,7 +244,7 @@ void handle_sigsegv(int sig, siginfo_t *
  12. void *array[50];
  13. int size;
  14. size = backtrace(array, 50);
  15. -#ifdef __linux__
  16. +#if defined __linux__ && !defined __UCLIBC__
  17. backtrace_symbols_fd(array, size, 2);
  18. #endif
  19. }