summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorThomas Boerger <thomas@webhippie.de>2015-11-19 22:34:32 +0100
committerThomas Boerger <thomas@webhippie.de>2015-11-19 22:46:47 +0100
commitffed4891569a5bcc16c4b16744a5adcf932b4f85 (patch)
tree845775e9acf8694151efcad67a02130dbc05761f /src
parentDefine stacktrace functions only if __GLIBC__ is defined (diff)
downloadcuberite-ffed4891569a5bcc16c4b16744a5adcf932b4f85.tar
cuberite-ffed4891569a5bcc16c4b16744a5adcf932b4f85.tar.gz
cuberite-ffed4891569a5bcc16c4b16744a5adcf932b4f85.tar.bz2
cuberite-ffed4891569a5bcc16c4b16744a5adcf932b4f85.tar.lz
cuberite-ffed4891569a5bcc16c4b16744a5adcf932b4f85.tar.xz
cuberite-ffed4891569a5bcc16c4b16744a5adcf932b4f85.tar.zst
cuberite-ffed4891569a5bcc16c4b16744a5adcf932b4f85.zip
Diffstat (limited to 'src')
-rw-r--r--src/OSSupport/StackTrace.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/OSSupport/StackTrace.cpp b/src/OSSupport/StackTrace.cpp
index b39bb6b7f..d0e088f4e 100644
--- a/src/OSSupport/StackTrace.cpp
+++ b/src/OSSupport/StackTrace.cpp
@@ -8,7 +8,9 @@
#ifdef _WIN32
#include "../StackWalker.h"
#else
- #include <execinfo.h>
+ #ifdef __GLIBC__
+ #include <execinfo.h>
+ #endif
#include <unistd.h>
#endif