diff libfdcore/sctps.c @ 798:ca8e30a2426d

Remove the warning on gnutls_transport_set_lowat
author Sebastien Decugis <sdecugis@nict.go.jp>
date Mon, 20 Aug 2012 22:54:56 +0200
parents c47c16436f71
children d5a4b5e175c2
line wrap: on
line diff
--- a/libfdcore/sctps.c	Mon Aug 20 22:16:21 2012 +0200
+++ b/libfdcore/sctps.c	Mon Aug 20 22:54:56 2012 +0200
@@ -224,7 +224,10 @@
 	GNUTLS_TRACE( gnutls_transport_set_ptr( session, (gnutls_transport_ptr_t) ctx ) );
 	
 	/* Reset the low water value, since we don't use sockets */
+#ifndef GNUTLS_VERSION_300
+	/* starting version 2.12, this call is not needed */
 	GNUTLS_TRACE( gnutls_transport_set_lowat( session, 0 ) );
+#endif /* GNUTLS_VERSION_300 */
 	
 	/* Set the push and pull callbacks */
 	GNUTLS_TRACE( gnutls_transport_set_pull_function(session, sctps_pull) );
"Welcome to our mercurial repository"