aboutsummaryrefslogtreecommitdiffstats
path: root/main/libetpan/gnutls-fix-1.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-03-14 13:03:00 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-03-14 13:03:00 +0000
commit814c6bd02f7ba1c4ef3bde8659e500cab224c33c (patch)
tree6b3246751fd26b6782d77d1e7d456345eadd64af /main/libetpan/gnutls-fix-1.patch
parent9090e024ebfb8be38b1040d4e4b19ed0beda0f3d (diff)
downloadaports-814c6bd02f7ba1c4ef3bde8659e500cab224c33c.tar.bz2
aports-814c6bd02f7ba1c4ef3bde8659e500cab224c33c.tar.xz
main/libetpan: upgrade to 1.2
Diffstat (limited to 'main/libetpan/gnutls-fix-1.patch')
-rw-r--r--main/libetpan/gnutls-fix-1.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/main/libetpan/gnutls-fix-1.patch b/main/libetpan/gnutls-fix-1.patch
new file mode 100644
index 0000000000..a707452341
--- /dev/null
+++ b/main/libetpan/gnutls-fix-1.patch
@@ -0,0 +1,32 @@
+From b375332c53dea84d32f42c785e96352aacb79513 Mon Sep 17 00:00:00 2001
+From: "Hoa V. DINH" <dinh.viet.hoa@gmail.com>
+Date: Wed, 20 Nov 2013 21:48:44 -0800
+Subject: [PATCH] Fixed #86: Fixed build for GnuTLS
+
+---
+ src/data-types/mailstream_ssl.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/src/data-types/mailstream_ssl.c b/src/data-types/mailstream_ssl.c
+index d0ef259..6002421 100644
+--- a/src/data-types/mailstream_ssl.c
++++ b/src/data-types/mailstream_ssl.c
+@@ -154,6 +154,7 @@ struct mailstream_ssl_data {
+ #endif
+
+ // Used to make OpenSSL thread safe
++#ifndef USE_GNUTLS
+ #if defined (HAVE_PTHREAD_H) && !defined (WIN32) && defined (USE_SSL) && defined (LIBETPAN_REENTRANT)
+ struct CRYPTO_dynlock_value
+ {
+@@ -224,6 +225,7 @@ struct mailstream_ssl_data {
+ CRYPTO_set_dynlock_destroy_callback(dyn_destroy_function);
+ }
+ #endif
++#endif
+
+ void mailstream_ssl_init_lock(void)
+ {
+--
+1.8.5.5
+