Commit f12e781c by Xingjian Shi Committed by Tianqi Chen

fix build in windows (#256)

parent 8e51af2f
......@@ -10,6 +10,7 @@
#if defined(_WIN32)
#include <winsock2.h>
#include <ws2tcpip.h>
using ssize_t = int;
#ifdef _MSC_VER
#pragma comment(lib, "Ws2_32.lib")
#endif
......@@ -100,7 +101,6 @@ struct SockAddr {
class Socket {
public:
#if defined(_WIN32)
using ssize_t = int;
using sock_size_t = int;
using SockType = SOCKET;
#else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment