aboutsummaryrefslogtreecommitdiffstats
path: root/common/rdr/TLSInStream.cxx
diff options
context:
space:
mode:
authorDRC <dcommander@users.sourceforge.net>2010-09-30 06:25:28 +0000
committerDRC <dcommander@users.sourceforge.net>2010-09-30 06:25:28 +0000
commit3e465a6525f9d7dbd763d7ed4c92a3e73f4db4f4 (patch)
treeb8afa46faa083d22e0fad7701166de0e219db8f1 /common/rdr/TLSInStream.cxx
parentc2adf3f87462a92bccb66c60c9329f17694c1b72 (diff)
downloadtigervnc-3e465a6525f9d7dbd763d7ed4c92a3e73f4db4f4.tar.gz
tigervnc-3e465a6525f9d7dbd763d7ed4c92a3e73f4db4f4.zip
Support building with older versions of gnutls; Fix gnutls detection when building statically using build-xorg
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4147 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'common/rdr/TLSInStream.cxx')
-rw-r--r--common/rdr/TLSInStream.cxx4
1 files changed, 4 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;