mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-24 12:46:35 +01:00
FreeBSD build patches
Imported from http://svnweb.freebsd.org/ports/head/www/qupzilla/files/ See #1206
This commit is contained in:
parent
156a14dfb6
commit
d005505dba
1
src/lib/3rdparty/processinfo.cpp
vendored
1
src/lib/3rdparty/processinfo.cpp
vendored
@ -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>
|
||||
|
4
src/lib/3rdparty/processinfo.h
vendored
4
src/lib/3rdparty/processinfo.h
vendored
@ -18,6 +18,10 @@
|
||||
#ifndef PROCESSINFO_H
|
||||
#define PROCESSINFO_H
|
||||
|
||||
#ifdef QZ_WS_X11
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include <QString>
|
||||
|
||||
#include "qz_namespace.h"
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user