From 12f62e2cdab608776de75e84cf38e00a6ddbbe5e Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Mon, 17 Aug 2015 10:44:04 +0200 Subject: Fix build on OS X After some changes in qtbase unistd.h isn't implicitly included anymore and we need to include it here for _PC_CASE_SENSITIVE. This is similar to commit 6503b4924f76673487e35994e2504c2a9d15bd97 in qtdeclarative. Change-Id: I80efd31909ebbc7c084d8a90313910cfbbbbebee Reviewed-by: Simon Hausmann --- .../auto/declarative/qdeclarativelanguage/tst_qdeclarativelanguage.cpp | 3 +++ .../qdeclarativemoduleplugin/tst_qdeclarativemoduleplugin.cpp | 3 +++ 2 files changed, 6 insertions(+) (limited to 'tests/auto') diff --git a/tests/auto/declarative/qdeclarativelanguage/tst_qdeclarativelanguage.cpp b/tests/auto/declarative/qdeclarativelanguage/tst_qdeclarativelanguage.cpp index 03d250f6..e8e1a33d 100644 --- a/tests/auto/declarative/qdeclarativelanguage/tst_qdeclarativelanguage.cpp +++ b/tests/auto/declarative/qdeclarativelanguage/tst_qdeclarativelanguage.cpp @@ -47,6 +47,9 @@ #include "testhttpserver.h" +#if defined(Q_OS_OSX) +#include +#endif DEFINE_BOOL_CONFIG_OPTION(qmlCheckTypes, QML_CHECK_TYPES) diff --git a/tests/auto/declarative/qdeclarativemoduleplugin/tst_qdeclarativemoduleplugin.cpp b/tests/auto/declarative/qdeclarativemoduleplugin/tst_qdeclarativemoduleplugin.cpp index 33fb60fb..b3ea9923 100644 --- a/tests/auto/declarative/qdeclarativemoduleplugin/tst_qdeclarativemoduleplugin.cpp +++ b/tests/auto/declarative/qdeclarativemoduleplugin/tst_qdeclarativemoduleplugin.cpp @@ -43,6 +43,9 @@ #define SERVER_ADDR "http://127.0.0.1:14450" #define SERVER_PORT 14450 +#if defined(Q_OS_MAC) +#include +#endif class tst_qdeclarativemoduleplugin : public QDeclarativeDataTest { -- cgit v1.2.3