QHostAddress: fix compile on Windows
authorMartin Petersson <martin.petersson@nokia.com>
Tue, 5 Jul 2011 14:04:38 +0000 (16:04 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 5 Jul 2011 15:03:32 +0000 (17:03 +0200)
AF_INET6 needs to be defined on Windows. This got undefined when
QT_NO_IPV6 was removed in 85869920bb9a4ee45cf4a89e74b1bd3d4ce67eaa

Change-Id: I1b4904f9561286b884324882f0f11dc29ba01416
Reviewed-on: http://codereview.qt.nokia.com/1169
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Markus Goetz
src/network/kernel/qhostaddress.cpp

index 2404811..3dd7461 100644 (file)
 ** $QT_END_LICENSE$
 **
 ****************************************************************************/
-
 #include "qhostaddress.h"
 #include "qhostaddress_p.h"
 #include "qdebug.h"
+#if defined(Q_OS_WIN)
+#include <winsock2.h>
+#endif
 #include "qplatformdefs.h"
 #include "qstringlist.h"
 #include "qendian.h"
 #ifndef QT_NO_DATASTREAM
 #include <qdatastream.h>
 #endif
-#if defined(Q_OS_WINCE)
-#include <winsock.h>
-#endif
 
 #ifdef QT_LINUXBASE
 #  include <arpa/inet.h>