aboutsummaryrefslogtreecommitdiffstats
path: root/testing/godot/crash_handler_x11.patch
blob: 951c8c028a3729011739f6be0cd1019e7014d3cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
--- a/platform/x11/crash_handler_x11.cpp
+++ b/platform/x11/crash_handler_x11.cpp
@@ -49,7 +49,7 @@
 	if (OS::get_singleton() == NULL) {
 		abort();
 	}
-
+#if defined(__linux__) && defined(__GLIBC__)
 	void *bt_buffer[256];
 	size_t size = backtrace(bt_buffer, 256);
 	String _execpath = OS::get_singleton()->get_executable_path();
@@ -89,7 +89,6 @@
 						free(demangled);
 				}
 			}
-
 			List<String> args;
 
 			char str[1024];
@@ -115,6 +114,7 @@
 		free(strings);
 	}
 	fprintf(stderr, "-- END OF BACKTRACE --\n");
+#endif   
 
 	// Abort to pass the error to the OS
 	abort();