summaryrefslogtreecommitdiffstats
path: root/tests/auto/qdir
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2009-09-17 13:16:06 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2009-09-18 09:10:38 (GMT)
commit6009e98900a605209de38bb73146683fbe606e44 (patch)
tree1cde01538d8086c47caf76dbb1f995e40c889e90 /tests/auto/qdir
parentef310719ef42cd09e2542fce96c529b5657bf167 (diff)
downloadQt-6009e98900a605209de38bb73146683fbe606e44.zip
Qt-6009e98900a605209de38bb73146683fbe606e44.tar.gz
Qt-6009e98900a605209de38bb73146683fbe606e44.tar.bz2
Autotest: fix compilation with a more strict compiler / libc.
Reviewed-By: TrustMe
Diffstat (limited to 'tests/auto/qdir')
-rw-r--r--tests/auto/qdir/tst_qdir.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/qdir/tst_qdir.cpp b/tests/auto/qdir/tst_qdir.cpp
index a117d09..4b4d0a0 100644
--- a/tests/auto/qdir/tst_qdir.cpp
+++ b/tests/auto/qdir/tst_qdir.cpp
@@ -54,6 +54,8 @@
# define STRINGIFY(x) #x
# define TOSTRING(x) STRINGIFY(x)
# define SRCDIR "C:/Private/" TOSTRING(SYMBIAN_SRCDIR_UID) "/"
+#elif defined(Q_OS_UNIX)
+# include <unistd.h>
#endif
#if defined(Q_OS_VXWORKS)