commit | a6f97409e8968c69e3b74bcc5425cafb2de46955 | [log] [tgz] |
---|---|---|
author | Pierre Ossman <ossman@cendio.se> | Tue Mar 17 13:42:06 2015 +0100 |
committer | Pierre Ossman <ossman@cendio.se> | Tue Mar 17 17:18:50 2015 +0100 |
tree | c30a2f14175769859e3e5f64142e8532dd4e6118 | |
parent | 57cab51d83629ee7e0ede8eaa869453cc9231434 [diff] [blame] |
Fix proper socket headers for Win32
diff --git a/common/network/TcpSocket.h b/common/network/TcpSocket.h index bb55e7d..bc2a17d 100644 --- a/common/network/TcpSocket.h +++ b/common/network/TcpSocket.h
@@ -33,8 +33,14 @@ #endif #include <network/Socket.h> + +#ifdef WIN32 +#include <winsock2.h> +#include <ws2tcpip.h> +#else #include <sys/socket.h> /* for socklen_t */ #include <netinet/in.h> /* for struct sockaddr_in */ +#endif #include <list>