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:
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"
|
#include "processinfo.h"
|
||||||
|
|
||||||
#ifdef QZ_WS_X11
|
#ifdef QZ_WS_X11
|
||||||
#include <unistd.h>
|
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/stat.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
|
#ifndef PROCESSINFO_H
|
||||||
#define PROCESSINFO_H
|
#define PROCESSINFO_H
|
||||||
|
|
||||||
|
#ifdef QZ_WS_X11
|
||||||
|
#include <unistd.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <QString>
|
#include <QString>
|
||||||
|
|
||||||
#include "qz_namespace.h"
|
#include "qz_namespace.h"
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
#include <QMessageBox> // For QT_REQUIRE_VERSION
|
#include <QMessageBox> // For QT_REQUIRE_VERSION
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
#if defined(Q_OS_LINUX) || defined(__GLIBC__)
|
#if defined(Q_OS_LINUX) || defined(__GLIBC__) || defined(__FreeBSD__)
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <execinfo.h>
|
#include <execinfo.h>
|
||||||
|
|
||||||
|
@ -111,7 +111,7 @@ void qupzilla_signal_handler(int s)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif // defined(Q_OS_LINUX) || defined(__GLIBC__)
|
#endif // defined(Q_OS_LINUX) || defined(__GLIBC__) || defined(__FreeBSD__)
|
||||||
|
|
||||||
#ifndef Q_OS_WIN
|
#ifndef Q_OS_WIN
|
||||||
#if (QT_VERSION < 0x050000)
|
#if (QT_VERSION < 0x050000)
|
||||||
|
@ -175,7 +175,7 @@ int main(int argc, char* argv[])
|
||||||
QApplication::setGraphicsSystem("raster"); // Better overall performance on X11
|
QApplication::setGraphicsSystem("raster"); // Better overall performance on X11
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(Q_OS_LINUX) || defined(__GLIBC__)
|
#if defined(Q_OS_LINUX) || defined(__GLIBC__) || defined(__FreeBSD__)
|
||||||
signal(SIGSEGV, qupzilla_signal_handler);
|
signal(SIGSEGV, qupzilla_signal_handler);
|
||||||
signal(SIGPIPE, qupzilla_signal_handler);
|
signal(SIGPIPE, qupzilla_signal_handler);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue
Block a user