aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/tiger-vnc.rb30
1 files changed, 30 insertions, 0 deletions
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 <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;
+Index: common/rdr/TLSOutStream.cxx
+===================================================================
+--- /dev/null
++++ common/rdr/TLSOutStream.cxx
+@@ -27,9 +27,7 @@
+ #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;