23 lines
491 B
Diff
23 lines
491 B
Diff
|
--- src/Main/bootstrap.cxx 2017-03-17 09:52:07.474706542 +0100
|
||
|
+++ src/Main/bootstrap.cxx 2017-03-17 09:53:40.361793507 +0100
|
||
|
@@ -141,7 +141,7 @@
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
-#if defined(__GNUC__)
|
||
|
+#if defined(__GNUC__) && defined(__GLIBC__)
|
||
|
#include <execinfo.h>
|
||
|
#include <cxxabi.h>
|
||
|
void segfault_handler(int signo) {
|
||
|
@@ -244,8 +244,10 @@
|
||
|
|
||
|
signal(SIGPIPE, SIG_IGN);
|
||
|
# ifndef NDEBUG
|
||
|
+# ifdef __GLIBC__
|
||
|
signal(SIGSEGV, segfault_handler);
|
||
|
# endif
|
||
|
+# endif
|
||
|
#endif
|
||
|
|
||
|
_bootstrap_OSInit = 0;
|