diff --git a/src/corelib/thread/qthread_unix.cpp b/src/corelib/thread/qthread_unix.cpp index 44487a2cc2b..13b061d7c7e 100644 --- a/src/corelib/thread/qthread_unix.cpp +++ b/src/corelib/thread/qthread_unix.cpp @@ -43,11 +43,8 @@ # include #endif #ifdef Q_OS_VXWORKS -# if (_WRS_VXWORKS_MAJOR > 6) || ((_WRS_VXWORKS_MAJOR == 6) && (_WRS_VXWORKS_MINOR >= 6)) -# include -# include -# define QT_VXWORKS_HAS_CPUSET -# endif +# include +# include #endif #ifdef Q_OS_HPUX @@ -466,8 +463,6 @@ int QThread::idealThreadCount() noexcept // as of aug 2008 Integrity only supports one single core CPU cores = 1; #elif defined(Q_OS_VXWORKS) - // VxWorks -# if defined(QT_VXWORKS_HAS_CPUSET) cpuset_t cpus = vxCpuEnabledGet(); cores = 0; @@ -478,10 +473,6 @@ int QThread::idealThreadCount() noexcept cores++; } } -# else - // as of aug 2008 VxWorks < 6.6 only supports one single core CPU - cores = 1; -# endif #elif defined(Q_OS_WASM) cores = QThreadPrivate::idealThreadCount; #else