mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 21:33:27 -07:00
Fix compilation without backtrace support on Windows.
This commit is contained in:
parent
1f0d4ce871
commit
eb0d1748c3
1 changed files with 3 additions and 3 deletions
|
@ -65,7 +65,7 @@ Q_IMPORT_PLUGIN(qico)
|
|||
#include "stacktrace.h"
|
||||
#endif
|
||||
|
||||
#if defined(Q_OS_WIN) && defined(STACKTRACE_WIN)
|
||||
#ifdef STACKTRACE_WIN
|
||||
#include <signal.h>
|
||||
#include "stacktrace_win.h"
|
||||
#include "stacktrace_win_dlg.h"
|
||||
|
@ -133,7 +133,7 @@ public:
|
|||
|
||||
#include "main.moc"
|
||||
|
||||
#if defined(Q_WS_X11) || defined(Q_WS_MAC) || defined(Q_OS_WIN)
|
||||
#if defined(Q_WS_X11) || defined(Q_WS_MAC) || defined(STACKTRACE_WIN)
|
||||
void sigintHandler(int) {
|
||||
signal(SIGINT, 0);
|
||||
qDebug("Catching SIGINT, exiting cleanly");
|
||||
|
@ -333,7 +333,7 @@ int main(int argc, char *argv[]) {
|
|||
#ifndef DISABLE_GUI
|
||||
app.setQuitOnLastWindowClosed(false);
|
||||
#endif
|
||||
#if defined(Q_WS_X11) || defined(Q_WS_MAC) || defined(Q_OS_WIN)
|
||||
#if defined(Q_WS_X11) || defined(Q_WS_MAC) || defined(STACKTRACE_WIN)
|
||||
signal(SIGABRT, sigabrtHandler);
|
||||
signal(SIGTERM, sigtermHandler);
|
||||
signal(SIGINT, sigintHandler);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue