summaryrefslogtreecommitdiffstats
path: root/tests/auto/qglthreads/tst_qglthreads.cpp
diff options
context:
space:
mode:
authorIikka Eklund <iikka.eklund@digia.com>2011-09-23 15:13:39 (GMT)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2011-09-23 15:13:39 (GMT)
commit140e68ae50411631aa5c1649face4c7d9d1b651d (patch)
treef846898d6d2e88ffb9c20220fbb307715aa62959 /tests/auto/qglthreads/tst_qglthreads.cpp
parenta6f87c60ed135c8f92a0de846dba5734fa7cf6c6 (diff)
downloadQt-140e68ae50411631aa5c1649face4c7d9d1b651d.zip
Qt-140e68ae50411631aa5c1649face4c7d9d1b651d.tar.gz
Qt-140e68ae50411631aa5c1649face4c7d9d1b651d.tar.bz2
Fix broken qglthreads autotest build on Solaris.
qglthreads autotest can not find usleep() function when compiling on Solaris platform. Added qplatformdefs.h include to fix compilation. Task-number: QTBUG-21594 Merge-request: 1394 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Diffstat (limited to 'tests/auto/qglthreads/tst_qglthreads.cpp')
-rw-r--r--tests/auto/qglthreads/tst_qglthreads.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/qglthreads/tst_qglthreads.cpp b/tests/auto/qglthreads/tst_qglthreads.cpp
index 859f47f..60fb10c 100644
--- a/tests/auto/qglthreads/tst_qglthreads.cpp
+++ b/tests/auto/qglthreads/tst_qglthreads.cpp
@@ -49,6 +49,7 @@
#include <unistd.h> // for usleep
#define RUNNING_TIME 2000 // save GPU mem by running shorter time.
#else
+#include "qplatformdefs.h" // for usleep
#define RUNNING_TIME 5000
#endif