aboutsummaryrefslogtreecommitdiff
path: root/src/lib/sockio-c.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/sockio-c.c')
-rw-r--r--src/lib/sockio-c.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/sockio-c.c b/src/lib/sockio-c.c
index 31439c43..a29be625 100644
--- a/src/lib/sockio-c.c
+++ b/src/lib/sockio-c.c
@@ -105,17 +105,18 @@ int spad_server_number = -1;
This is needed only for MS platforms. */
static int openaxiom_socket_module_loaded = 0;
+#ifdef __WIN32__
/* Windows require some handshaking with the WinSock DLL before
we can even think about talking about sockets. */
static void
openaxiom_unload_socket_module(void)
{
-#ifdef __WIN32__
WSACleanup();
openaxiom_socket_module_loaded = 0;
-#endif
}
+#endif
+
static void
openaxiom_load_socket_module(void)