summaryrefslogtreecommitdiff
path: root/src/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common.c')
-rw-r--r--src/common.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/common.c b/src/common.c
index 8eab7f8bca..9bf983d795 100644
--- a/src/common.c
+++ b/src/common.c
@@ -661,3 +661,16 @@ char* ret;
return dst;
}
#endif
+
+void sockets_init( void)
+{
+#ifdef _WIN32
+ WORD wVersionRequested;
+ WSADATA wsaData;
+
+ wVersionRequested = MAKEWORD(1, 1);
+ if (WSAStartup(wVersionRequested, &wsaData) != 0) {
+ perror("WSA_STARTUP_ERROR");
+ }
+#endif
+}