diff options
Diffstat (limited to 'src/common/stack_trace.cpp')
-rw-r--r-- | src/common/stack_trace.cpp | 2 |
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 |