summaryrefslogtreecommitdiffstats
path: root/src/corelib/thread/qthread_unix.cpp
diff options
context:
space:
mode:
authorPaul Olav Tvete <paul.tvete@nokia.com>2010-10-22 07:47:06 (GMT)
committerPaul Olav Tvete <paul.tvete@nokia.com>2010-10-22 07:47:06 (GMT)
commit9a216c3f7abeacae8b9e9f78e50ddfcfbb5e2fa3 (patch)
treeec1eb5ec4225b596dca92df654d58b72a229d8a6 /src/corelib/thread/qthread_unix.cpp
parentd22741b4bee0e526aefbbd7b851c2aa1b0b1c5b6 (diff)
parent4e6790c8dc21c5287bff6799fb0984a72e2f2766 (diff)
downloadQt-9a216c3f7abeacae8b9e9f78e50ddfcfbb5e2fa3.zip
Qt-9a216c3f7abeacae8b9e9f78e50ddfcfbb5e2fa3.tar.gz
Qt-9a216c3f7abeacae8b9e9f78e50ddfcfbb5e2fa3.tar.bz2
Merge remote branch 'lighthouse/4.7' into lighthouse-master
Diffstat (limited to 'src/corelib/thread/qthread_unix.cpp')
-rw-r--r--src/corelib/thread/qthread_unix.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/corelib/thread/qthread_unix.cpp b/src/corelib/thread/qthread_unix.cpp
index d738e80..c796cea 100644
--- a/src/corelib/thread/qthread_unix.cpp
+++ b/src/corelib/thread/qthread_unix.cpp
@@ -83,7 +83,9 @@
# define old_qDebug qDebug
# undef qDebug
# endif
+#ifndef QT_NO_CORESERVICES
# include <CoreServices/CoreServices.h>
+#endif //QT_NO_CORESERVICES
# ifdef old_qDebug
# undef qDebug
@@ -358,7 +360,7 @@ int QThread::idealThreadCount()
{
int cores = -1;
-#if defined(Q_OS_MAC)
+#if defined(Q_OS_MAC) && !defined(Q_WS_QPA)
// Mac OS X
cores = MPProcessorsScheduled();
#elif defined(Q_OS_HPUX)