diff --git a/src/lib/3rdparty/processinfo.cpp b/src/lib/3rdparty/processinfo.cpp index 6cc179ceb..15955b554 100644 --- a/src/lib/3rdparty/processinfo.cpp +++ b/src/lib/3rdparty/processinfo.cpp @@ -17,7 +17,7 @@ * ============================================================ */ #include "processinfo.h" -#ifdef Q_OS_UNIX +#if defined(Q_OS_UNIX) && !defined(Q_OS_MAC) #include #include #include @@ -36,7 +36,7 @@ ProcessInfo::ProcessInfo(const QString &name) bool ProcessInfo::isRunning() const { -#ifdef Q_OS_UNIX +#if defined(Q_OS_UNIX) && !defined(Q_OS_MAC) pid_t pid = GetPIDbyName(qPrintable(m_name)); // -1 = process not found // -2 = /proc fs access error @@ -46,7 +46,7 @@ bool ProcessInfo::isRunning() const #endif } -#ifdef Q_OS_UNIX +#if defined(Q_OS_UNIX) && !defined(Q_OS_MAC) bool ProcessInfo::IsNumeric(const char* ccharptr_CharacterList) const { for (; *ccharptr_CharacterList; ccharptr_CharacterList++) { diff --git a/src/lib/3rdparty/processinfo.h b/src/lib/3rdparty/processinfo.h index b0370fd8d..b3e88ddfe 100644 --- a/src/lib/3rdparty/processinfo.h +++ b/src/lib/3rdparty/processinfo.h @@ -39,7 +39,7 @@ public: bool isRunning() const; private: -#ifdef Q_OS_UNIX +#if defined(Q_OS_UNIX) && !defined(Q_OS_MAC) bool IsNumeric(const char* ccharptr_CharacterList) const; pid_t GetPIDbyName(const char* cchrptr_ProcessName) const;