gtls: only call gnutls_transport_set_lowat with <gnutls-2.12.0
authorTim Harder <radhermit@gmail.com>
Wed, 19 Oct 2011 08:08:56 +0000 (10:08 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 19 Oct 2011 22:28:29 +0000 (00:28 +0200)
commit8036da870c5b413a83097b3486c58d13910a471a
tree7d43de6ec3dd5b09dc1d46048eb0a7b00ac12b30
parent2621dd42a4d3e510e68f7d6a31ba325634d87ee6
gtls: only call gnutls_transport_set_lowat with <gnutls-2.12.0

The default lowat level for gnutls-2.12* is set to zero to avoid
unnecessary system calls and the gnutls_transport_set_lowat function has
been totally removed in >=gnutls-3 which causes build failures.

Therefore, the function shouldn't be used except for versions that
require it, <gnutls-2.12.0.
lib/gtls.c