From 190bb186aefe920ceaf5c464a88812e59d95e5e4 Mon Sep 17 00:00:00 2001 From: Eskil Abrahamsen Blomfeldt Date: Fri, 27 Jun 2014 15:54:01 +0200 Subject: Android: Fix compilation of qhostaddress test The sockaddr_in struct is defined in netinet/in.h header. Change-Id: I67a3421094c96a5e948968a26723ec8c21f85c93 Reviewed-by: BogDan Vatra --- tests/auto/network/kernel/qhostaddress/tst_qhostaddress.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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 +#endif + class tst_QHostAddress : public QObject { Q_OBJECT -- cgit v1.2.3