diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-06-20 19:23:32 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-06-20 19:23:32 +0100 |
commit | 15c2b69db7dbdfafd9f9b6cc8c4f14e3952a353b (patch) | |
tree | d32de9e10e827f62cd28101563280cf0efd63c38 | |
parent | CMakeLists: fix build without libunwind (diff) | |
download | monero-15c2b69db7dbdfafd9f9b6cc8c4f14e3952a353b.tar.xz |
common: fix build without libunwind
Diffstat (limited to '')
-rw-r--r-- | src/common/stack_trace.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/stack_trace.cpp b/src/common/stack_trace.cpp index 1a65ca656..2805e7604 100644 --- a/src/common/stack_trace.cpp +++ b/src/common/stack_trace.cpp @@ -28,8 +28,10 @@ #include "common/stack_trace.h" #include "misc_log_ex.h" +#ifdef HAVE_LIBUNWIND #define UNW_LOCAL_ONLY #include <libunwind.h> +#endif #include <cxxabi.h> #include <dlfcn.h> @@ -112,8 +114,6 @@ void log_stack_trace(const char *msg) LOG_PRINT2(log, " " << std::setw(4) << level << std::setbase(16) << std::setw(20) << "0x" << ip << " " << (!status && dsym ? dsym : sym) << " + " << "0x" << off, LOG_LEVEL_0); free(dsym); } -#else -#warning libunwind disabled, no stack traces #endif } |