]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
don
authorAnthony Minessale <anthony.minessale@gmail.com>
Tue, 24 Mar 2009 17:58:00 +0000 (17:58 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Tue, 24 Mar 2009 17:58:00 +0000 (17:58 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12758 d0543943-73ff-0310-b7d9-9358b9ac24b2

libs/iksemel/src/stream.c

index c4e86a756d4a3a0800c7a8ccf4a7b71dcc980d9d..b879a1f0912b8e4d8726eab6f4466390114ca062 100644 (file)
@@ -45,8 +45,10 @@ struct stream_data {
 };
 
 #ifdef HAVE_GNUTLS
+#ifndef WIN32
 #include <gcrypt.h>
 GCRY_THREAD_OPTION_PTHREAD_IMPL;
+#endif
 
 static size_t
 tls_push (iksparser *prs, const char *buffer, size_t len)
@@ -78,7 +80,9 @@ handshake (struct stream_data *data)
        const int mac_priority[] = { GNUTLS_MAC_SHA, GNUTLS_MAC_MD5, 0 };
        int ret;
 
+#ifndef WIN32
        gcry_control(GCRYCTL_SET_THREAD_CBS, &gcry_threads_pthread);
+#endif
 
        if (gnutls_global_init () != 0)
                return IKS_NOMEM;
@@ -610,7 +614,9 @@ iks_init(void)
 {
        int ok = 0;
        
+#ifndef WIN32
        gcry_control(GCRYCTL_SET_THREAD_CBS, &gcry_threads_pthread);
+#endif
 
        if (gnutls_global_init () != 0)
                return IKS_NOMEM;