aboutsummaryrefslogtreecommitdiffstats
path: root/src/version.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2010-01-25 16:04:27 +0000
committerWerner Koch <[email protected]>2010-01-25 16:04:27 +0000
commitdbcce0df8f265a5e158c8e489be3dec6e704fd73 (patch)
tree794ab48c72d3009a15cef9f05cee33c5dc169142 /src/version.c
parentPost-release fixup. (diff)
downloadgpgme-dbcce0df8f265a5e158c8e489be3dec6e704fd73.tar.gz
gpgme-dbcce0df8f265a5e158c8e489be3dec6e704fd73.zip
Allow the native W32 version to properly work with sockets.
Diffstat (limited to 'src/version.c')
-rw-r--r--src/version.c17
1 files changed, 5 insertions, 12 deletions
diff --git a/src/version.c b/src/version.c
index 8ba71ac3..e02037e9 100644
--- a/src/version.c
+++ b/src/version.c
@@ -65,24 +65,17 @@ do_subsystem_inits (void)
return;
#ifdef HAVE_W32_SYSTEM
- {
- WSADATA wsadat;
-
- WSAStartup (0x202, &wsadat);
- }
-#endif
-
- _gpgme_sema_subsystem_init ();
- _gpgme_debug_subsystem_init ();
- _gpgme_io_subsystem_init ();
-#if defined(HAVE_W32_SYSTEM) && defined(HAVE_ASSUAN_H)
/* We need to make sure that the sockets are initialized. */
{
WSADATA wsadat;
WSAStartup (0x202, &wsadat);
}
-#endif /*HAVE_W32_SYSTEM && HAVE_ASSUAN_H*/
+#endif
+
+ _gpgme_sema_subsystem_init ();
+ _gpgme_debug_subsystem_init ();
+ _gpgme_io_subsystem_init ();
done = 1;
}