$OpenBSD: patch-libmailwatch-core_mailwatch-net-conn_c,v 1.1 2012/07/09 08:59:34 ajacoutot Exp $

The gnutls_transport_set_lowat function has been removed in gnutls>=3
(the lowat feature is always disabled now).

--- libmailwatch-core/mailwatch-net-conn.c.orig	Mon Jul  9 10:43:36 2012
+++ libmailwatch-core/mailwatch-net-conn.c	Mon Jul  9 10:44:40 2012
@@ -621,8 +621,10 @@ xfce_mailwatch_net_conn_make_secure(XfceMailwatchNetCo
                            net_conn->gt_creds);
     gnutls_transport_set_ptr(net_conn->gt_session,
                              (gnutls_transport_ptr_t)net_conn->fd);
+#if GNUTLS_VERSION_NUMBER < 0x020c00
     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
