diff --git a/src/lib/3rdparty/processinfo.cpp b/src/lib/3rdparty/processinfo.cpp index 4002c1099..d8c4d9100 100644 --- a/src/lib/3rdparty/processinfo.cpp +++ b/src/lib/3rdparty/processinfo.cpp @@ -18,7 +18,6 @@ #include "processinfo.h" #ifdef QZ_WS_X11 -#include #include #include #include diff --git a/src/lib/3rdparty/processinfo.h b/src/lib/3rdparty/processinfo.h index 610f5b33c..ab35cadfc 100644 --- a/src/lib/3rdparty/processinfo.h +++ b/src/lib/3rdparty/processinfo.h @@ -18,6 +18,10 @@ #ifndef PROCESSINFO_H #define PROCESSINFO_H +#ifdef QZ_WS_X11 +#include +#endif + #include #include "qz_namespace.h" diff --git a/src/main/main.cpp b/src/main/main.cpp index 2fb70d972..acdf9bfeb 100644 --- a/src/main/main.cpp +++ b/src/main/main.cpp @@ -21,7 +21,7 @@ #include // For QT_REQUIRE_VERSION #include -#if defined(Q_OS_LINUX) || defined(__GLIBC__) +#if defined(Q_OS_LINUX) || defined(__GLIBC__) || defined(__FreeBSD__) #include #include @@ -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