From 6009e98900a605209de38bb73146683fbe606e44 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Thu, 17 Sep 2009 15:16:06 +0200 Subject: Autotest: fix compilation with a more strict compiler / libc. Reviewed-By: TrustMe --- tests/auto/qdir/tst_qdir.cpp | 2 ++ tests/auto/qitemview/tst_qitemview.cpp | 3 +++ 2 files changed, 5 insertions(+) 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 #endif #if defined(Q_OS_VXWORKS) diff --git a/tests/auto/qitemview/tst_qitemview.cpp b/tests/auto/qitemview/tst_qitemview.cpp index 3251ceb..58d7e24 100644 --- a/tests/auto/qitemview/tst_qitemview.cpp +++ b/tests/auto/qitemview/tst_qitemview.cpp @@ -45,6 +45,9 @@ #include "viewstotest.cpp" #include +#if defined(Q_OS_UNIX) +#include +#endif #if defined(Q_OS_WIN) #include #if defined(Q_OS_WINCE) -- cgit v0.12