Skip to content
Snippets Groups Projects
Commit f12e781c authored by Xingjian Shi's avatar Xingjian Shi Committed by Tianqi Chen
Browse files

fix build in windows (#256)

parent 8e51af2f
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment