From 2cca490076841b431d7a83d020d90e1ad00bbca5 Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Mon, 6 Sep 2010 14:51:01 +0200 Subject: Moved pthread specific code in src/threads/pthread.c pthread example doesn't compile du to the lack of libssh_threads_native.so library --- src/threads.c | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'src/threads.c') 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 -#include -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 -- cgit