summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common/network/TcpSocket.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/common/network/TcpSocket.h b/common/network/TcpSocket.h
index bb55e7d2..bc2a17de 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>