summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@theqtcompany.com>2015-08-17 10:44:04 +0200
committerSimon Hausmann <simon.hausmann@theqtcompany.com>2015-08-25 15:18:51 +0000
commit12f62e2cdab608776de75e84cf38e00a6ddbbe5e (patch)
treeb8d024b58c5334ec9718fdf1fcb9ca80e89227c9
parenta669c33d9c6f42a29d31f493a888ec4fef29bcd8 (diff)
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 <simon.hausmann@theqtcompany.com>
-rw-r--r--tests/auto/declarative/qdeclarativelanguage/tst_qdeclarativelanguage.cpp3
-rw-r--r--tests/auto/declarative/qdeclarativemoduleplugin/tst_qdeclarativemoduleplugin.cpp3
2 files changed, 6 insertions, 0 deletions
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 <unistd.h>
+#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 <unistd.h>
+#endif
class tst_qdeclarativemoduleplugin : public QDeclarativeDataTest
{