From 35bf2101fe7a06d244835e5cd74b0be553e26c71 Mon Sep 17 00:00:00 2001 From: tqchen Date: Sun, 23 Nov 2014 22:18:28 -0800 Subject: [PATCH] seems a prob in win --- src/utils/socket.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/utils/socket.h b/src/utils/socket.h index 156f455a0..ac3e96665 100644 --- a/src/utils/socket.h +++ b/src/utils/socket.h @@ -125,7 +125,9 @@ class TCPSocket { * \brief shutdown the socket module after use, all sockets need to be closed */ inline static void Finalize(void) { +#ifdef _WIN32 WSACleanup(); +#endif } /*! * \brief set this socket to use non-blocking mode