$NetBSD: patch-ag,v 1.6 2011/09/12 17:43:05 drochner Exp $ --- src/common/ssl.c.orig 2011-08-27 06:58:15.000000000 +0000 +++ src/common/ssl.c @@ -29,8 +29,10 @@ #include #include #include +#ifdef HAVE_LIBGCRYPT #include GCRY_THREAD_OPTION_PTHREAD_IMPL; +#endif #include "claws.h" #include "utils.h" @@ -153,7 +155,9 @@ const gchar *claws_ssl_get_cert_dir(void void ssl_init(void) { +#ifdef HAVE_LIBGCRYPT gcry_control (GCRYCTL_SET_THREAD_CBS, &gcry_threads_pthread); +#endif #ifdef HAVE_LIBETPAN mailstream_gnutls_init_not_required(); #endif