aboutsummaryrefslogtreecommitdiff
path: root/libssh/init.c
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2008-03-07 02:11:40 +0000
committerAris Adamantiadis <aris@0xbadc0de.be>2008-03-07 02:11:40 +0000
commitc284eb4e38721f567db15bde24ea53822d0cefb4 (patch)
treed126f1958112b7f8afe9039fa112efbd07f53a86 /libssh/init.c
parent0d6e3c17903bf370765b24b5f2cfeaf9d5d57e3f (diff)
downloadlibssh-c284eb4e38721f567db15bde24ea53822d0cefb4.tar.gz
libssh-c284eb4e38721f567db15bde24ea53822d0cefb4.tar.xz
libssh-c284eb4e38721f567db15bde24ea53822d0cefb4.zip
second part of win32 changes
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@143 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'libssh/init.c')
-rw-r--r--libssh/init.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libssh/init.c b/libssh/init.c
index f1ae11f0..5a242844 100644
--- a/libssh/init.c
+++ b/libssh/init.c
@@ -22,6 +22,9 @@ the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
#include "libssh/priv.h"
+#ifdef _WIN32
+#include <winsock2.h>
+#endif
int ssh_finalize()
{
@@ -31,5 +34,8 @@ int ssh_finalize()
#elif defined HAVE_LIBCRYPTO
EVP_cleanup();
#endif
+#ifdef _WIN32
+ WSACleanup();
+#endif
return 0;
}