From ab91e3eed21c7c1819202abc1a5d5f443ee4a86f Mon Sep 17 00:00:00 2001 From: Ni2c2k Date: Tue, 16 Dec 2014 20:09:40 +0500 Subject: [PATCH 1/2] getloadavg() is unsupported on Qnx --- cli/threadexecutor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/threadexecutor.cpp b/cli/threadexecutor.cpp index dfd00a0e2..8481c3a70 100644 --- a/cli/threadexecutor.cpp +++ b/cli/threadexecutor.cpp @@ -143,7 +143,7 @@ int ThreadExecutor::handleRead(int rpipe, unsigned int &result) bool ThreadExecutor::checkLoadAverage(size_t nchildren) { -#ifdef __CYGWIN__ // getloadavg() is unsupported on Cygwin. +#if defined(__CYGWIN__) || defined(__QNX__) // getloadavg() is unsupported on Cygwin, Qnx. return true; #else if (!nchildren || !_settings._loadAverage) { From 666fa04ed8010e3ae2650a7089d970d0f376304a Mon Sep 17 00:00:00 2001 From: Ni2c2k Date: Tue, 16 Dec 2014 20:11:25 +0500 Subject: [PATCH 2/2] don't use USE_UNIX_BACKTRACE_SUPPORT on Qnx --- cli/cppcheckexecutor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/cppcheckexecutor.cpp b/cli/cppcheckexecutor.cpp index b7917d445..0ae907b15 100644 --- a/cli/cppcheckexecutor.cpp +++ b/cli/cppcheckexecutor.cpp @@ -51,7 +51,7 @@ #endif #endif -#if !defined(NO_UNIX_BACKTRACE_SUPPORT) && defined(USE_UNIX_SIGNAL_HANDLING) && defined(__GNUC__) && !defined(__CYGWIN__) && !defined(__MINGW32__) && !defined(__NetBSD__) && !defined(__SVR4) +#if !defined(NO_UNIX_BACKTRACE_SUPPORT) && defined(USE_UNIX_SIGNAL_HANDLING) && defined(__GNUC__) && !defined(__CYGWIN__) && !defined(__MINGW32__) && !defined(__NetBSD__) && !defined(__SVR4) && !defined(__QNX__) #define USE_UNIX_BACKTRACE_SUPPORT #include #include