Commit f12e781c by Xingjian Shi Committed by Tianqi Chen

fix build in windows (#256)

parent 8e51af2f
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
#if defined(_WIN32) #if defined(_WIN32)
#include <winsock2.h> #include <winsock2.h>
#include <ws2tcpip.h> #include <ws2tcpip.h>
using ssize_t = int;
#ifdef _MSC_VER #ifdef _MSC_VER
#pragma comment(lib, "Ws2_32.lib") #pragma comment(lib, "Ws2_32.lib")
#endif #endif
...@@ -100,7 +101,6 @@ struct SockAddr { ...@@ -100,7 +101,6 @@ struct SockAddr {
class Socket { class Socket {
public: public:
#if defined(_WIN32) #if defined(_WIN32)
using ssize_t = int;
using sock_size_t = int; using sock_size_t = int;
using SockType = SOCKET; using SockType = SOCKET;
#else #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