From 6b87f8519dc037f4fd4c19d8f36b7d7565559bd3 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 19 Jul 2012 00:01:52 +0000 Subject: Thu Jul 19 00:01:52 UTC 2012 --- community/tigervnc/gnutls.patch | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 community/tigervnc/gnutls.patch (limited to 'community/tigervnc/gnutls.patch') diff --git a/community/tigervnc/gnutls.patch b/community/tigervnc/gnutls.patch new file mode 100644 index 000000000..d0b7ef861 --- /dev/null +++ b/community/tigervnc/gnutls.patch @@ -0,0 +1,36 @@ +diff -ur tigervnc-1.2.0.orig/CMakeLists.txt tigervnc-1.2.0/CMakeLists.txt +--- tigervnc-1.2.0.orig/CMakeLists.txt 2012-03-09 21:34:29.000000000 +0100 ++++ tigervnc-1.2.0/CMakeLists.txt 2012-03-27 23:14:12.292068145 +0200 +@@ -344,7 +344,7 @@ + # system's version (if available) to perform this test. + set(CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES};-lz) + endif() +- check_function_exists(gnutls_transport_set_global_errno HAVE_OLD_GNUTLS) ++ check_function_exists(gnutls_transport_set_global_errno HAVE_GNUTLS_GLOBAL_ERRNO) + check_function_exists(gnutls_x509_crt_print HAVE_GNUTLS_X509_CRT_PRINT) + check_type_size(gnutls_x509_crt_t GNUTLS_X509_CRT_T) + check_type_size(gnutls_datum_t GNUTLS_DATUM_T) +diff -ur tigervnc-1.2.0.orig/common/rdr/TLSInStream.cxx tigervnc-1.2.0/common/rdr/TLSInStream.cxx +--- tigervnc-1.2.0.orig/common/rdr/TLSInStream.cxx 2010-09-30 08:25:28.000000000 +0200 ++++ tigervnc-1.2.0/common/rdr/TLSInStream.cxx 2012-03-27 23:14:11.166068223 +0200 +@@ -27,7 +27,7 @@ + #include + #include + +-#ifdef HAVE_OLD_GNUTLS ++#ifndef HAVE_GNUTLS_GLOBAL_ERRNO + #define gnutls_transport_set_global_errno(A) do { errno = (A); } while(0) + #endif + +diff -ur tigervnc-1.2.0.orig/common/rdr/TLSOutStream.cxx tigervnc-1.2.0/common/rdr/TLSOutStream.cxx +--- tigervnc-1.2.0.orig/common/rdr/TLSOutStream.cxx 2010-09-30 08:25:28.000000000 +0200 ++++ tigervnc-1.2.0/common/rdr/TLSOutStream.cxx 2012-03-27 23:14:09.576068335 +0200 +@@ -27,7 +27,7 @@ + #include + #include + +-#ifdef HAVE_OLD_GNUTLS ++#ifndef HAVE_GNUTLS_GLOBAL_ERRNO + #define gnutls_transport_set_global_errno(A) do { errno = (A); } while(0) + #endif + -- cgit v1.2.3-54-g00ecf