QHostAddress: fix compile on Windows
AF_INET6 needs to be defined on Windows. This got undefined when
QT_NO_IPV6 was removed in 85869920bb
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
This commit is contained in:
parent
d789e40c58
commit
21c4f1806e
@ -38,19 +38,18 @@
|
|||||||
** $QT_END_LICENSE$
|
** $QT_END_LICENSE$
|
||||||
**
|
**
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include "qhostaddress.h"
|
#include "qhostaddress.h"
|
||||||
#include "qhostaddress_p.h"
|
#include "qhostaddress_p.h"
|
||||||
#include "qdebug.h"
|
#include "qdebug.h"
|
||||||
|
#if defined(Q_OS_WIN)
|
||||||
|
#include <winsock2.h>
|
||||||
|
#endif
|
||||||
#include "qplatformdefs.h"
|
#include "qplatformdefs.h"
|
||||||
#include "qstringlist.h"
|
#include "qstringlist.h"
|
||||||
#include "qendian.h"
|
#include "qendian.h"
|
||||||
#ifndef QT_NO_DATASTREAM
|
#ifndef QT_NO_DATASTREAM
|
||||||
#include <qdatastream.h>
|
#include <qdatastream.h>
|
||||||
#endif
|
#endif
|
||||||
#if defined(Q_OS_WINCE)
|
|
||||||
#include <winsock.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef QT_LINUXBASE
|
#ifdef QT_LINUXBASE
|
||||||
# include <arpa/inet.h>
|
# include <arpa/inet.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user