summaryrefslogtreecommitdiffstats
path: root/src/corelib
diff options
context:
space:
mode:
authorTristan Chabredier <tc@4js.com>2009-12-15 09:20:29 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2009-12-15 09:20:29 (GMT)
commit7a3c595421b98087da638a5e706320d0d936d828 (patch)
treefa0413340a98487e70eb5e6a62148318498a34dd /src/corelib
parentcd0c4934ed60a3eae12d85d93aa950e9296cdb83 (diff)
downloadQt-7a3c595421b98087da638a5e706320d0d936d828.zip
Qt-7a3c595421b98087da638a5e706320d0d936d828.tar.gz
Qt-7a3c595421b98087da638a5e706320d0d936d828.tar.bz2
Fix compilation on HP-UX 11.11.
Error was: thread/qthread_unix.cpp: In static member function 'static int QThread::idealThreadCount()': thread/qthread_unix.cpp:325: error: aggregate 'pst_dynamic psd' has incomplete type and cannot be defined thread/qthread_unix.cpp:326: error: 'pstat_getdynamic' was not declared in this scope Task-number: QTBUG-6576 Reviewed-by: Thiago Macieira <thiago.macieira@nokia.com>
Diffstat (limited to 'src/corelib')
-rw-r--r--src/corelib/thread/qthread_unix.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/corelib/thread/qthread_unix.cpp b/src/corelib/thread/qthread_unix.cpp
index 21b5e65..0309c67 100644
--- a/src/corelib/thread/qthread_unix.cpp
+++ b/src/corelib/thread/qthread_unix.cpp
@@ -74,6 +74,10 @@
# endif
#endif
+#ifdef Q_OS_HPUX
+#include <sys/pstat.h>
+#endif
+
#if defined(Q_OS_MAC)
# ifdef qDebug
# define old_qDebug qDebug