[Freeswitch-svn] [commit] r12758 - freeswitch/trunk/libs/iksemel/src

FreeSWITCH SVN anthm at freeswitch.org
Tue Mar 24 10:58:01 PDT 2009


Author: anthm
Date: Tue Mar 24 12:58:00 2009
New Revision: 12758

Log:
don

Modified:
   freeswitch/trunk/libs/iksemel/src/stream.c

Modified: freeswitch/trunk/libs/iksemel/src/stream.c
==============================================================================
--- freeswitch/trunk/libs/iksemel/src/stream.c	(original)
+++ freeswitch/trunk/libs/iksemel/src/stream.c	Tue Mar 24 12:58:00 2009
@@ -45,8 +45,10 @@
 };
 
 #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 @@
 	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 @@
 {
 	int ok = 0;
 	
+#ifndef WIN32
 	gcry_control(GCRYCTL_SET_THREAD_CBS, &gcry_threads_pthread);
+#endif
 
 	if (gnutls_global_init () != 0)
 		return IKS_NOMEM;



More information about the Freeswitch-svn mailing list