diff options
Diffstat (limited to 'channels/chan_gtalk.c')
-rw-r--r-- | channels/chan_gtalk.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/channels/chan_gtalk.c b/channels/chan_gtalk.c index 657e0d83c..39e4c7d9e 100644 --- a/channels/chan_gtalk.c +++ b/channels/chan_gtalk.c @@ -47,10 +47,12 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") #include <arpa/inet.h> #include <sys/signal.h> #include <iksemel.h> +#include <pthread.h> +#if HAVE_GNUTLS #include <gcrypt.h> -#include <pthread.h> GCRY_THREAD_OPTION_PTHREAD_IMPL; +#endif /* HAVE_GNUTLS */ #include "asterisk/lock.h" #include "asterisk/channel.h" @@ -1809,7 +1811,9 @@ static int gtalk_load_config(void) /*! \brief Load module into PBX, register channel */ static int load_module(void) { +#if HAVE_GNUTLS gcry_control (GCRYCTL_SET_THREAD_CBS, &gcry_threads_pthread); +#endif /* HAVE_GNUTLS */ ASTOBJ_CONTAINER_INIT(>alk_list); if (!gtalk_load_config()) { |