From 443874e61486b0906846ec87588ddaa8658cf5bd Mon Sep 17 00:00:00 2001 From: Stefan Date: Thu, 8 Nov 2012 19:22:29 +0100 Subject: tiger-vnc: patch for gnutls 3 c.f. #15923. Signed-off-by: Jack Nagel --- Library/Formula/tiger-vnc.rb | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'Library/Formula') diff --git a/Library/Formula/tiger-vnc.rb b/Library/Formula/tiger-vnc.rb index 19f5ba8dc..52acd0af5 100644 --- a/Library/Formula/tiger-vnc.rb +++ b/Library/Formula/tiger-vnc.rb @@ -13,6 +13,7 @@ class TigerVnc < Formula # Fix build of included fltk library on Mountain Lion # http://www.fltk.org/str.php?L2864 + # Patch for compatibility with gnutls 3 def patches { :p0 => DATA } end @@ -82,3 +83,32 @@ Index: common/fltk/FL/mac.H +#endif // FL_LIBRARY || FL_INTERNALS typedef CGImageRef Fl_Bitmask; + +Index: common/rdr/TLSInStream.cxx +=================================================================== +--- /dev/null ++++ common/rdr/TLSInStream.cxx +@@ -27,9 +27,7 @@ + #include + #include + +-#ifdef HAVE_OLD_GNUTLS + #define gnutls_transport_set_global_errno(A) do { errno = (A); } while(0) +-#endif + + #ifdef HAVE_GNUTLS + using namespace rdr; +Index: common/rdr/TLSOutStream.cxx +=================================================================== +--- /dev/null ++++ common/rdr/TLSOutStream.cxx +@@ -27,9 +27,7 @@ + #include + #include + +-#ifdef HAVE_OLD_GNUTLS + #define gnutls_transport_set_global_errno(A) do { errno = (A); } while(0) +-#endif + + #ifdef HAVE_GNUTLS + using namespace rdr; -- cgit v1.2.3