1
mirror of https://invent.kde.org/network/falkon.git synced 2024-09-21 17:52:10 +02:00

FreeBSD build patches

Imported from http://svnweb.freebsd.org/ports/head/www/qupzilla/files/
See #1206
This commit is contained in:
nowrep 2014-02-13 20:16:20 +01:00
parent 156a14dfb6
commit d005505dba
3 changed files with 7 additions and 4 deletions

View File

@ -18,7 +18,6 @@
#include "processinfo.h"
#ifdef QZ_WS_X11
#include <unistd.h>
#include <dirent.h>
#include <sys/types.h>
#include <sys/stat.h>

View File

@ -18,6 +18,10 @@
#ifndef PROCESSINFO_H
#define PROCESSINFO_H
#ifdef QZ_WS_X11
#include <unistd.h>
#endif
#include <QString>
#include "qz_namespace.h"

View File

@ -21,7 +21,7 @@
#include <QMessageBox> // For QT_REQUIRE_VERSION
#include <iostream>
#if defined(Q_OS_LINUX) || defined(__GLIBC__)
#if defined(Q_OS_LINUX) || defined(__GLIBC__) || defined(__FreeBSD__)
#include <signal.h>
#include <execinfo.h>
@ -111,7 +111,7 @@ void qupzilla_signal_handler(int s)
break;
}
}
#endif // defined(Q_OS_LINUX) || defined(__GLIBC__)
#endif // defined(Q_OS_LINUX) || defined(__GLIBC__) || defined(__FreeBSD__)
#ifndef Q_OS_WIN
#if (QT_VERSION < 0x050000)
@ -175,7 +175,7 @@ int main(int argc, char* argv[])
QApplication::setGraphicsSystem("raster"); // Better overall performance on X11
#endif
#if defined(Q_OS_LINUX) || defined(__GLIBC__)
#if defined(Q_OS_LINUX) || defined(__GLIBC__) || defined(__FreeBSD__)
signal(SIGSEGV, qupzilla_signal_handler);
signal(SIGPIPE, qupzilla_signal_handler);
#endif