in_addr is defined in <Winsock2.h>, include before <ws2tcpip.h>

This commit is contained in:
Jacques Germishuys 2014-07-05 21:22:56 +02:00
parent b0ed61f822
commit 90c2b37fd7

View File

@ -13,6 +13,7 @@
# include <netinet/in.h>
# include <arpa/inet.h>
#else
# include <winsock2.h>
# include <ws2tcpip.h>
# ifdef _MSC_VER
# pragma comment(lib, "ws2_32")