summaryrefslogtreecommitdiff
path: root/src/socketengines
diff options
context:
space:
mode:
Diffstat (limited to 'src/socketengines')
-rw-r--r--src/socketengines/socketengine_select.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/socketengines/socketengine_select.cpp b/src/socketengines/socketengine_select.cpp
index 03f0aca62..bfb9ea05c 100644
--- a/src/socketengines/socketengine_select.cpp
+++ b/src/socketengines/socketengine_select.cpp
@@ -35,6 +35,12 @@ namespace
void SocketEngine::Init()
{
+#ifdef _WIN32
+ // Set up winsock.
+ WSADATA wsadata;
+ WSAStartup(MAKEWORD(2,2), &wsadata);
+#endif
+
MaxSetSize = FD_SETSIZE;
FD_ZERO(&ReadSet);