41 lines
1.4 KiB
Diff
41 lines
1.4 KiB
Diff
--- lib/framework/debug.cpp.orig 2016-01-27 07:52:07.414728274 +0100
|
|
+++ lib/framework/debug.cpp 2016-01-27 07:52:41.381052522 +0100
|
|
@@ -36,7 +36,7 @@
|
|
#include <string>
|
|
#include "src/warzoneconfig.h" // for checking FS or not
|
|
|
|
-#ifdef WZ_OS_LINUX
|
|
+#if defined(WZ_OS_LINUX) && defined(__GLIBC__)
|
|
#include <execinfo.h> // Nonfatal runtime backtraces.
|
|
#endif //WZ_OS_LINUX
|
|
|
|
@@ -541,7 +541,7 @@ void _debug(int line, code_part part, co
|
|
|
|
void _debugBacktrace(code_part part)
|
|
{
|
|
-#ifdef WZ_OS_LINUX
|
|
+#if defined(WZ_OS_LINUX) && defined(__GLIBC__)
|
|
void *btv[20];
|
|
unsigned num = backtrace(btv, sizeof(btv) / sizeof(*btv));
|
|
char **btc = backtrace_symbols(btv, num);
|
|
--- lib/netplay/netplay.cpp.orig 2016-01-27 07:56:42.982098373 +0100
|
|
+++ lib/netplay/netplay.cpp 2016-01-27 07:57:18.302393414 +0100
|
|
@@ -54,7 +54,7 @@
|
|
#include "src/version.h"
|
|
#include "src/loadsave.h"
|
|
|
|
-#ifdef WZ_OS_LINUX
|
|
+#if defined(WZ_OS_LINUX) && defined(__GLIBC__)
|
|
#include <execinfo.h> // Nonfatal runtime backtraces.
|
|
#endif //WZ_OS_LINUX
|
|
|
|
@@ -3540,7 +3540,7 @@ void _syncDebugBacktrace(const char *fun
|
|
|
|
uint32_t backupCrc = syncDebugLog[syncDebugNext].getCrc(); // Ignore CRC changes from _syncDebug(), since identical backtraces can be printed differently.
|
|
|
|
-#ifdef WZ_OS_LINUX
|
|
+#if defined(WZ_OS_LINUX) && defined(__GLIBC__)
|
|
void *btv[20];
|
|
unsigned num = backtrace(btv, sizeof(btv) / sizeof(*btv));
|
|
char **btc = backtrace_symbols(btv, num);
|