summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2012-06-16 14:52:16 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2012-06-16 14:52:16 +0000
commit7fe8d0c2e494a7818cf0621a9f60137ec0d02b1e (patch)
treea2412e2211ee9a73f4f8073f70e2e70fcc59367b /xfce-extra/xfce4-mailwatch-plugin/files
parentMask sys-kernel/cluster-sources for removal. (diff)
downloadgentoo-2-7fe8d0c2e494a7818cf0621a9f60137ec0d02b1e.tar.gz
gentoo-2-7fe8d0c2e494a7818cf0621a9f60137ec0d02b1e.tar.bz2
gentoo-2-7fe8d0c2e494a7818cf0621a9f60137ec0d02b1e.zip
Fix building with net-libs/gnutls >= 3 wrt #421407 by Diego Elio Pettenò
(Portage version: 2.2.0_alpha110/cvs/Linux x86_64)
Diffstat (limited to 'xfce-extra/xfce4-mailwatch-plugin/files')
-rw-r--r--xfce-extra/xfce4-mailwatch-plugin/files/xfce4-mailwatch-plugin-1.1.0-gnutls-3.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/xfce-extra/xfce4-mailwatch-plugin/files/xfce4-mailwatch-plugin-1.1.0-gnutls-3.patch b/xfce-extra/xfce4-mailwatch-plugin/files/xfce4-mailwatch-plugin-1.1.0-gnutls-3.patch
new file mode 100644
index 000000000000..6737538d367a
--- /dev/null
+++ b/xfce-extra/xfce4-mailwatch-plugin/files/xfce4-mailwatch-plugin-1.1.0-gnutls-3.patch
@@ -0,0 +1,16 @@
+http://bugs.gentoo.org/421407
+http://bugzilla.xfce.org/show_bug.cgi?id=7998
+
+--- libmailwatch-core/mailwatch-net-conn.c
++++ libmailwatch-core/mailwatch-net-conn.c
+@@ -621,8 +621,10 @@
+ net_conn->gt_creds);
+ gnutls_transport_set_ptr(net_conn->gt_session,
+ (gnutls_transport_ptr_t)net_conn->fd);
++#if GNUTLS_VERSION_MAJOR == 2 && GNUTLS_VERSION_MINOR < 12
+ if(fcntl(net_conn->fd, F_GETFL) & O_NONBLOCK)
+ gnutls_transport_set_lowat(net_conn->gt_session, 0);
++#endif
+
+ if(!xfce_mailwatch_net_conn_tls_handshake(net_conn, error)) {
+ #if 0