mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-18 10:44:28 +00:00
don't reference GnuTLS headers and functions unless the configure script found it
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@65966 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -47,10 +47,12 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
|
|||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
#include <sys/signal.h>
|
#include <sys/signal.h>
|
||||||
#include <iksemel.h>
|
#include <iksemel.h>
|
||||||
|
|
||||||
#include <gcrypt.h>
|
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
|
|
||||||
|
#if HAVE_GNUTLS
|
||||||
|
#include <gcrypt.h>
|
||||||
GCRY_THREAD_OPTION_PTHREAD_IMPL;
|
GCRY_THREAD_OPTION_PTHREAD_IMPL;
|
||||||
|
#endif /* HAVE_GNUTLS */
|
||||||
|
|
||||||
#include "asterisk/lock.h"
|
#include "asterisk/lock.h"
|
||||||
#include "asterisk/channel.h"
|
#include "asterisk/channel.h"
|
||||||
@@ -1809,7 +1811,9 @@ static int gtalk_load_config(void)
|
|||||||
/*! \brief Load module into PBX, register channel */
|
/*! \brief Load module into PBX, register channel */
|
||||||
static int load_module(void)
|
static int load_module(void)
|
||||||
{
|
{
|
||||||
|
#if HAVE_GNUTLS
|
||||||
gcry_control (GCRYCTL_SET_THREAD_CBS, &gcry_threads_pthread);
|
gcry_control (GCRYCTL_SET_THREAD_CBS, &gcry_threads_pthread);
|
||||||
|
#endif /* HAVE_GNUTLS */
|
||||||
|
|
||||||
ASTOBJ_CONTAINER_INIT(>alk_list);
|
ASTOBJ_CONTAINER_INIT(>alk_list);
|
||||||
if (!gtalk_load_config()) {
|
if (!gtalk_load_config()) {
|
||||||
|
Reference in New Issue
Block a user