2022-08-01 02:06:37 +00:00
|
|
|
diff --git a/src/Main/bootstrap.cxx b/src/Main/bootstrap.cxx
|
|
|
|
index f9eb159..958aa8a 100755
|
|
|
|
--- a/src/Main/bootstrap.cxx
|
|
|
|
+++ b/src/Main/bootstrap.cxx
|
2025-03-03 22:49:27 +01:00
|
|
|
@@ -188,7 +188,6 @@ bool checkUniversalCRTVersion()
|
2022-08-01 02:06:37 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined(__GNUC__)
|
|
|
|
-#include <execinfo.h>
|
|
|
|
#include <cxxabi.h>
|
|
|
|
void segfault_handler(int signo) {
|
|
|
|
void *array[128];
|
2025-03-03 22:49:27 +01:00
|
|
|
@@ -193,7 +193,7 @@ void segfault_handler(int signo) {
|
2022-08-01 02:06:37 +00:00
|
|
|
|
|
|
|
fprintf(stderr, "Error: caught signal %d:\n", signo);
|
|
|
|
|
|
|
|
- #ifndef __OpenBSD__
|
|
|
|
+ #if defined(__GLIBC__)
|
2025-03-03 22:49:27 +01:00
|
|
|
void *array[128];
|
|
|
|
size_t size;
|
2022-08-01 02:06:37 +00:00
|
|
|
size = backtrace(array, 128);
|
2025-03-03 22:49:27 +01:00
|
|
|
|