summaryrefslogtreecommitdiff
path: root/x11/ruby-fox/patches
diff options
context:
space:
mode:
authortaca <taca@pkgsrc.org>2002-01-26 03:50:34 +0000
committertaca <taca@pkgsrc.org>2002-01-26 03:50:34 +0000
commit7266304db88c61a9fa3d4e61ef3de968df30e71d (patch)
tree73de9dcae6da15fd34a3999aeda1f6b65c540e5f /x11/ruby-fox/patches
parent052b213245087e3b0bb9fa81ff6a47634284a846 (diff)
downloadpkgsrc-7266304db88c61a9fa3d4e61ef3de968df30e71d.tar.gz
Fix build problem (with new toolchain?). Focus pkg/15195.
Diffstat (limited to 'x11/ruby-fox/patches')
-rw-r--r--x11/ruby-fox/patches/patch-ab23
1 files changed, 23 insertions, 0 deletions
diff --git a/x11/ruby-fox/patches/patch-ab b/x11/ruby-fox/patches/patch-ab
new file mode 100644
index 00000000000..7f154314e5b
--- /dev/null
+++ b/x11/ruby-fox/patches/patch-ab
@@ -0,0 +1,23 @@
+$NetBSD: patch-ab,v 1.1 2002/01/26 03:50:35 taca Exp $
+
+--- FXRuby.cpp.orig Fri Jul 27 05:09:22 2001
++++ FXRuby.cpp
+@@ -74,6 +74,9 @@
+ #include <io.h> // for get_osf_handle()
+ #endif
+
++#define RB_BPROC(func) ((VALUE (*)(...))func)
++#define RB_RPROC(func) ((VALUE (*)(...))func)
++
+ // Maps C++ objects to Ruby instances
+ static std::map<const void*,VALUE> FXRuby_ObjMap;
+
+@@ -766,7 +769,7 @@
+ hArgs.nargs=3;
+ VALUE retval;
+ if(FXRbCatchExceptions){
+- retval=rb_rescue2(handle_body,(VALUE)&hArgs,handle_rescue,Qnil,
++ retval=rb_rescue2(RB_BPROC(handle_body),(VALUE)&hArgs,RB_RPROC(handle_rescue),Qnil,
+ rb_eStandardError,rb_eNameError,0);
+ }
+ else{