aboutsummaryrefslogtreecommitdiff
path: root/src/common/stack_trace.cpp
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2016-06-21 11:16:25 -0500
committerluigi1111 <luigi1111w@gmail.com>2016-06-21 11:16:25 -0500
commitd7189600aed51e5fde7e9fa01c3b632e6d251de4 (patch)
tree57f725ec8221296fb5aabab2fde7086ef625336c /src/common/stack_trace.cpp
parentMerge pull request #870 (diff)
downloadmonero-d7189600aed51e5fde7e9fa01c3b632e6d251de4.tar.xz
remove POSIX_C_SOURCE and remove dlfcn.h for static builds
The former was a faulty "fix" for gmtime_r not existing on Windows. The latter is needed only for dynamic builds, and is not included with msys2, which ends up fine because Windows is only built static at this time.
Diffstat (limited to '')
-rw-r--r--src/common/stack_trace.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/stack_trace.cpp b/src/common/stack_trace.cpp
index 2805e7604..0d2ccb39d 100644
--- a/src/common/stack_trace.cpp
+++ b/src/common/stack_trace.cpp
@@ -33,7 +33,9 @@
#include <libunwind.h>
#endif
#include <cxxabi.h>
+#ifndef STATICLIB
#include <dlfcn.h>
+#endif
// from http://stackoverflow.com/questions/11665829/how-can-i-print-stack-trace-for-caught-exceptions-in-c-code-injection-in-c
#ifdef STATICLIB