Skip to content
Snippets Groups Projects

Packages glshim

Closed Imported Administrator requested to merge steamp0rt:patch-3 into master
5 files
+ 214
0
Compare changes
  • Side-by-side
  • Inline
Files
5
+ 39
0
From 6e4e4cea845fa08850753748c1453520609cfefb Mon Sep 17 00:00:00 2001
From: MoreRobustThanYou <MoreRobustThanYou@users.noreply.github.com>
Date: Thu, 28 Dec 2017 19:34:21 -0500
Subject: [PATCH] Backtrace only if there is backtrace support
---
src/glx/glx.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/glx/glx.c b/src/glx/glx.c
index a8622eda..45f8a4af 100644
--- a/src/glx/glx.c
+++ b/src/glx/glx.c
@@ -2,7 +2,9 @@
#include <linux/fb.h>
#endif
+#if defined(HAVE_BACKTRACE)
#include <execinfo.h>
+#endif
#include <fcntl.h>
#include <signal.h>
#include <stdlib.h>
@@ -187,6 +189,7 @@ static void signal_handler(int sig) {
bcm_host_deinit();
}
+ #if defined(HAVE_BACKTRACE)
if (g_stacktrace) {
switch (sig) {
case SIGBUS:
@@ -205,6 +208,7 @@ static void signal_handler(int sig) {
}
}
}
+ #endif // defined(HAVE_BACKTRACE)
signal(sig, SIG_DFL);
raise(sig);
}
Loading