aboutsummaryrefslogblamecommitdiffstats
path: root/testing/flightgear/musl-fix_backtrace.patch
blob: ddf8af58acd1e7437267762ecbaf756e9cee68e8 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                                        
--- a/src/Main/bootstrap.cxx
+++ b/src/Main/bootstrap.cxx
@@ -159,7 +159,7 @@ void segfault_handler(int signo) {
 
   fprintf(stderr, "Error: caught signal %d:\n", signo);
 
-  #ifndef __OpenBSD__
+  #if defined(__GLIBC__)
   size = backtrace(array, 128);
   if (size) {
     char** list = backtrace_symbols(array, size);