Pull in netinet/in.h. Required for definition of sockaddr_in and friends.

Change-Id: I3b1c7dc1c08ec54f5537b6019dc2554763538cfd
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
This commit is contained in:
Robin Burchell 2012-05-02 14:26:40 +02:00 committed by Qt by Nokia
parent f02acb8bfc
commit d1e8d9a347
2 changed files with 4 additions and 1 deletions

View File

@ -44,7 +44,9 @@
#include "private/qipaddress_p.h"
#include "qdebug.h"
#if defined(Q_OS_WIN)
#include <winsock2.h>
# include <winsock2.h>
#else
# include <netinet/in.h>
#endif
#include "qplatformdefs.h"
#include "qstringlist.h"

View File

@ -56,6 +56,7 @@
#include "private/qabstractsocketengine_p.h"
#ifndef Q_OS_WIN
# include "qplatformdefs.h"
# include <netinet/in.h>
#else
# include <winsock2.h>
#endif