diff --git a/src/lib/3rdparty/processinfo.cpp b/src/lib/3rdparty/processinfo.cpp index 15955b554..0ac0e2e97 100644 --- a/src/lib/3rdparty/processinfo.cpp +++ b/src/lib/3rdparty/processinfo.cpp @@ -18,9 +18,9 @@ #include "processinfo.h" #if defined(Q_OS_UNIX) && !defined(Q_OS_MAC) -#include -#include #include +#include +#include #include #include diff --git a/src/lib/3rdparty/processinfo.h b/src/lib/3rdparty/processinfo.h index b3e88ddfe..2b670776a 100644 --- a/src/lib/3rdparty/processinfo.h +++ b/src/lib/3rdparty/processinfo.h @@ -18,8 +18,8 @@ #ifndef PROCESSINFO_H #define PROCESSINFO_H -#ifdef Q_OS_UNIX -#include +#if defined(Q_OS_UNIX) && !defined(Q_OS_MAC) +#include #endif #include @@ -41,7 +41,6 @@ public: private: #if defined(Q_OS_UNIX) && !defined(Q_OS_MAC) bool IsNumeric(const char* ccharptr_CharacterList) const; - pid_t GetPIDbyName(const char* cchrptr_ProcessName) const; #endif diff --git a/src/lib/lib.pro b/src/lib/lib.pro index c6a35d8a0..d695b2c0d 100644 --- a/src/lib/lib.pro +++ b/src/lib/lib.pro @@ -532,7 +532,7 @@ os2 { LIBS += -lcrypto } -freebsd-* { +openbsd-*|freebsd-* { LIBS += -lexecinfo }