1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 02:36:34 +01:00

Use crashandler only on Linux. Fix compile issue on FreeBSD

This commit is contained in:
nowrep 2012-08-13 16:00:14 +02:00
parent 5de31410a4
commit 433f71ebdf

View File

@ -20,7 +20,7 @@
#include <QMessageBox> // For QT_REQUIRE_VERSION
#ifdef Q_WS_X11
#ifdef Q_OS_LINUX
#include <iostream>
#include <signal.h>
#include <execinfo.h>
@ -113,7 +113,9 @@ int main(int argc, char* argv[])
#ifdef Q_WS_X11
QApplication::setGraphicsSystem("raster"); // Better overall performance on X11
#endif
#ifdef Q_OS_LINUX
signal(SIGSEGV, qupzilla_signal_handler);
signal(SIGPIPE, qupzilla_signal_handler);
#endif