At least now, if you rebuild the efl in the right order, you
can't end with one library initializing GnuTLS without threads
support and another needing GnuTLS with threads support.
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@59379
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
* Add a custom Ecore Aniamtor source and tick ability to be able
to plug in external animator tick sources like vblank interrupts
and so on.
+
+2011-05-14 Cedric Bail
+
+ * Sync GNUTLS threads activation with Eina.
static int _init_con_ssl_init_count = 0;
-#if USE_GNUTLS
-# ifdef EFL_HAVE_PTHREAD
-#include <pthread.h>
+#ifdef EINA_HAVE_THREADS
+# ifdef USE_GNUTLS
GCRY_THREAD_OPTION_PTHREAD_IMPL;
# endif
+#endif
static int _client_connected = 0;
# define SSL_SUFFIX(ssl_func) ssl_func ## _gnutls
static Ecore_Con_Ssl_Error
_ecore_con_ssl_init_gnutls(void)
{
-#ifdef EFL_HAVE_PTHREAD
+#ifdef EINA_HAVE_THREADS
if (gcry_control(GCRYCTL_SET_THREAD_CBS, &gcry_threads_pthread))
WRN("YOU ARE USING PTHREADS, BUT I CANNOT INITIALIZE THREADSAFE GCRYPT OPERATIONS!");
#endif