summaryrefslogtreecommitdiffstats
path: root/libssh/init.c
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2010-08-30 23:44:03 +0200
committerAris Adamantiadis <aris@0xbadc0de.be>2010-08-30 23:44:03 +0200
commitbcc2d8474ccfc96a24896b2f6d52673e61e66452 (patch)
tree18c38beee69c089cf25855d92b6e45b7f28a5c62 /libssh/init.c
parente34da1b94dc707e9074b0958ebcd24706442bc81 (diff)
downloadlibssh-bcc2d8474ccfc96a24896b2f6d52673e61e66452.tar.gz
libssh-bcc2d8474ccfc96a24896b2f6d52673e61e66452.tar.xz
libssh-bcc2d8474ccfc96a24896b2f6d52673e61e66452.zip
Begin of a solution for threading
Diffstat (limited to 'libssh/init.c')
-rw-r--r--libssh/init.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libssh/init.c b/libssh/init.c
index 15a2aea..d8e7722 100644
--- a/libssh/init.c
+++ b/libssh/init.c
@@ -26,6 +26,8 @@
#include "libssh/socket.h"
#include "libssh/dh.h"
#include "libssh/poll.h"
+#include "libssh/threads.h"
+
#ifdef _WIN32
#include <winsock2.h>
#endif
@@ -49,6 +51,8 @@
* @returns 0 on success, -1 if an error occured.
*/
int ssh_init(void) {
+ if(ssh_threads_init())
+ return -1;
if(ssh_crypto_init())
return -1;
if(ssh_socket_init())