diff options
Diffstat (limited to 'synchronizer')
-rw-r--r-- | synchronizer/main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/synchronizer/main.cpp b/synchronizer/main.cpp index d5520f2..e1e169b 100644 --- a/synchronizer/main.cpp +++ b/synchronizer/main.cpp | |||
@@ -22,7 +22,9 @@ | |||
22 | #include <QDir> | 22 | #include <QDir> |
23 | 23 | ||
24 | #include <signal.h> | 24 | #include <signal.h> |
25 | #ifndef Q_OS_WIN | ||
25 | #include <execinfo.h> | 26 | #include <execinfo.h> |
27 | #endif | ||
26 | #include <csignal> | 28 | #include <csignal> |
27 | #include <iostream> | 29 | #include <iostream> |
28 | #include <cstdlib> | 30 | #include <cstdlib> |
@@ -47,6 +49,7 @@ static Listener *listener = nullptr; | |||
47 | //Print a demangled stacktrace | 49 | //Print a demangled stacktrace |
48 | void printStacktrace() | 50 | void printStacktrace() |
49 | { | 51 | { |
52 | #ifndef Q_OS_WIN | ||
50 | int skip = 1; | 53 | int skip = 1; |
51 | void *callstack[128]; | 54 | void *callstack[128]; |
52 | const int nMaxFrames = sizeof(callstack) / sizeof(callstack[0]); | 55 | const int nMaxFrames = sizeof(callstack) / sizeof(callstack[0]); |
@@ -81,6 +84,7 @@ void printStacktrace() | |||
81 | trace_buf << "[truncated]\n"; | 84 | trace_buf << "[truncated]\n"; |
82 | } | 85 | } |
83 | std::cerr << trace_buf.str(); | 86 | std::cerr << trace_buf.str(); |
87 | #endif | ||
84 | } | 88 | } |
85 | 89 | ||
86 | static int sCounter = 0; | 90 | static int sCounter = 0; |