diff options
author | Thomas Boerger <thomas@webhippie.de> | 2015-11-19 22:34:32 +0100 |
---|---|---|
committer | Thomas Boerger <thomas@webhippie.de> | 2015-11-19 22:46:47 +0100 |
commit | ffed4891569a5bcc16c4b16744a5adcf932b4f85 (patch) | |
tree | 845775e9acf8694151efcad67a02130dbc05761f | |
parent | Define stacktrace functions only if __GLIBC__ is defined (diff) | |
download | cuberite-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 |
-rw-r--r-- | src/OSSupport/StackTrace.cpp | 4 |
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 |