Correctly close socket on win32

Refs : https://msdn.microsoft.com/en-us/library/windows/desktop/ms740126%28v=vs.85%29.aspx
This commit is contained in:
Edric committed 2015-08-07 12:45:56 -04:00
1 parent 873fbd3d8e
commit 623dd4f2a7
1 file changed
+1
+1
View File
@@ -37,6 +37,7 @@
#else
#include <winsock2.h>
#include <ws2tcpip.h>
#define close(x) closesocket(x)
#endif
namespace dht {