summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIikka Eklund <iikka.eklund@digia.com>2011-09-23 17:13:39 +0200
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2011-09-23 17:13:39 +0200
commit140e68ae50411631aa5c1649face4c7d9d1b651d (patch)
treef846898d6d2e88ffb9c20220fbb307715aa62959
parenta6f87c60ed135c8f92a0de846dba5734fa7cf6c6 (diff)
downloadqt4-tools-140e68ae50411631aa5c1649face4c7d9d1b651d.tar.gz
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>
-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 859f47f000..60fb10cbbc 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