aboutsummaryrefslogtreecommitdiffstats
path: root/testing/godot/crash_handler_x11.patch
diff options
context:
space:
mode:
Diffstat (limited to 'testing/godot/crash_handler_x11.patch')
-rw-r--r--testing/godot/crash_handler_x11.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/testing/godot/crash_handler_x11.patch b/testing/godot/crash_handler_x11.patch
new file mode 100644
index 0000000000..951c8c028a
--- /dev/null
+++ b/testing/godot/crash_handler_x11.patch
@@ -0,0 +1,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();