diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2010-08-30 23:44:03 +0200 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2010-08-30 23:44:03 +0200 |
commit | bcc2d8474ccfc96a24896b2f6d52673e61e66452 (patch) | |
tree | 18c38beee69c089cf25855d92b6e45b7f28a5c62 /libssh/init.c | |
parent | e34da1b94dc707e9074b0958ebcd24706442bc81 (diff) | |
download | libssh-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.c | 4 |
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()) |