aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2016-07-06 18:12:03 +0200
committerRiccardo Spagni <ric@spagni.net>2016-07-06 18:12:03 +0200
commit628f57b2120085338fa259896c80b1de4621f8dc (patch)
tree7fb0360e5c7386c8b271b2b6eb0f309d69f61053 /src
parentMerge pull request #872 (diff)
parentremove POSIX_C_SOURCE and remove dlfcn.h for static builds (diff)
downloadmonero-628f57b2120085338fa259896c80b1de4621f8dc.tar.xz
Merge pull request #873
d718960 remove POSIX_C_SOURCE and remove dlfcn.h for static builds (luigi1111)
Diffstat (limited to 'src')
-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