summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>2014-06-27 15:54:01 +0200
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>2014-06-30 08:59:45 +0200
commit190bb186aefe920ceaf5c464a88812e59d95e5e4 (patch)
tree03c68e03767a668a6d853f609d3e5dc17dbf7ab7 /tests
parenta57f3ee9bb9462bb3742f5106ef4e4c33e8edeac (diff)
Android: Fix compilation of qhostaddress test
The sockaddr_in struct is defined in netinet/in.h header. Change-Id: I67a3421094c96a5e948968a26723ec8c21f85c93 Reviewed-by: BogDan Vatra <bogdan@kde.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/network/kernel/qhostaddress/tst_qhostaddress.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/network/kernel/qhostaddress/tst_qhostaddress.cpp b/tests/auto/network/kernel/qhostaddress/tst_qhostaddress.cpp
index c4d42206fe..99f677643c 100644
--- a/tests/auto/network/kernel/qhostaddress/tst_qhostaddress.cpp
+++ b/tests/auto/network/kernel/qhostaddress/tst_qhostaddress.cpp
@@ -55,6 +55,10 @@
# endif
#endif
+#ifdef Q_OS_ANDROID
+# include <netinet/in.h>
+#endif
+
class tst_QHostAddress : public QObject
{
Q_OBJECT