diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/rdr/TLSInStream.cxx | 4 | ||||
-rw-r--r-- | common/rdr/TLSOutStream.cxx | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/common/rdr/TLSInStream.cxx b/common/rdr/TLSInStream.cxx index faf548c8..ddc99917 100644 --- a/common/rdr/TLSInStream.cxx +++ b/common/rdr/TLSInStream.cxx @@ -27,6 +27,10 @@ #include <rdr/TLSInStream.h> #include <errno.h> +#ifdef HAVE_OLD_GNUTLS +#define gnutls_transport_set_global_errno(A) do { errno = (A); } while(0) +#endif + #ifdef HAVE_GNUTLS using namespace rdr; diff --git a/common/rdr/TLSOutStream.cxx b/common/rdr/TLSOutStream.cxx index 888b455b..d577ccc9 100644 --- a/common/rdr/TLSOutStream.cxx +++ b/common/rdr/TLSOutStream.cxx @@ -27,6 +27,10 @@ #include <rdr/TLSOutStream.h> #include <errno.h> +#ifdef HAVE_OLD_GNUTLS +#define gnutls_transport_set_global_errno(A) do { errno = (A); } while(0) +#endif + #ifdef HAVE_GNUTLS using namespace rdr; |