aboutsummaryrefslogtreecommitdiffstats
path: root/main/libetpan/gnutls-fix-2.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-2.patch
parent9090e024ebfb8be38b1040d4e4b19ed0beda0f3d (diff)
downloadaports-814c6bd02f7ba1c4ef3bde8659e500cab224c33c.tar.bz2
aports-814c6bd02f7ba1c4ef3bde8659e500cab224c33c.tar.xz
main/libetpan: upgrade to 1.2
Diffstat (limited to 'main/libetpan/gnutls-fix-2.patch')
-rw-r--r--main/libetpan/gnutls-fix-2.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/main/libetpan/gnutls-fix-2.patch b/main/libetpan/gnutls-fix-2.patch
new file mode 100644
index 0000000000..cf1983c2eb
--- /dev/null
+++ b/main/libetpan/gnutls-fix-2.patch
@@ -0,0 +1,33 @@
+From c4443cd85d708f1a6c3e6c249e4acda2029863f2 Mon Sep 17 00:00:00 2001
+From: "Hoa V. DINH" <dinh.viet.hoa@gmail.com>
+Date: Mon, 25 Nov 2013 20:40:48 -0800
+Subject: [PATCH] Fixed #86: fixed build for GnuTLS
+
+---
+ src/data-types/mailstream_ssl.c | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/src/data-types/mailstream_ssl.c b/src/data-types/mailstream_ssl.c
+index 6002421..b4c0c70 100644
+--- a/src/data-types/mailstream_ssl.c
++++ b/src/data-types/mailstream_ssl.c
+@@ -521,6 +521,7 @@ static struct mailstream_ssl_data * ssl_data_new(int fd, time_t timeout,
+ gnutls_certificate_credentials_t xcred;
+ int r;
+ struct mailstream_ssl_context * ssl_context = NULL;
++ unsigned int timeout_value;
+
+ mailstream_ssl_init();
+
+@@ -552,7 +553,7 @@ static struct mailstream_ssl_data * ssl_data_new(int fd, time_t timeout,
+ gnutls_dh_set_prime_bits(session, 512);
+
+ if (timeout == 0) {
+- timeout_value = mailstream_network_delay.tv_sec * 1000 + timeout.tv_usec / 1000;
++ timeout_value = mailstream_network_delay.tv_sec * 1000 + mailstream_network_delay.tv_usec / 1000;
+ }
+ else {
+ timeout_value = timeout;
+--
+1.8.5.5
+