diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2010-09-06 14:51:01 +0200 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2010-09-06 14:51:01 +0200 |
commit | 2cca490076841b431d7a83d020d90e1ad00bbca5 (patch) | |
tree | 6c42026aed29faeeb4d8e28ad3f11a4288517887 /src/threads.c | |
parent | f7842e3a4b9acea2126ff725f993c299aef0e6db (diff) | |
download | libssh-2cca490076841b431d7a83d020d90e1ad00bbca5.tar.gz libssh-2cca490076841b431d7a83d020d90e1ad00bbca5.tar.xz libssh-2cca490076841b431d7a83d020d90e1ad00bbca5.zip |
Moved pthread specific code in src/threads/pthread.c
pthread example doesn't compile du to the lack of
libssh_threads_native.so library
Diffstat (limited to 'src/threads.c')
-rw-r--r-- | src/threads.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/threads.c b/src/threads.c index 7cac6dbf..51a4ccfb 100644 --- a/src/threads.c +++ b/src/threads.c @@ -30,22 +30,6 @@ #include "libssh/priv.h" #include "libssh/threads.h" -#ifndef _WIN32 - -#ifndef HAVE_PTHREAD -#warning "You do not have any threading library installed. If the linked" -#warning "application doesn't provide the threading callbacks, you're screwed" -#endif - - -#ifdef HAVE_PTHREAD - -#include <errno.h> -#include <pthread.h> -SSH_THREADS_PTHREAD(ssh_pthread_user_callbacks); -#endif /* HAVE_PTHREAD */ -#endif /* _WIN32 */ - static struct ssh_threads_callbacks_struct *user_callbacks; #ifdef HAVE_LIBGCRYPT @@ -123,13 +107,8 @@ int ssh_threads_init(void){ * already the case */ if(user_callbacks == NULL){ -#ifdef HAVE_PTHREAD - user_callbacks=&ssh_pthread_user_callbacks; - } -#else return SSH_ERROR; // Can't do anything to initialize threading } -#endif /* Then initialize the crypto libraries threading callbacks */ #ifdef HAVE_LIBGCRYPT |