diff options
author | taca <taca> | 2002-01-26 03:50:34 +0000 |
---|---|---|
committer | taca <taca> | 2002-01-26 03:50:34 +0000 |
commit | fe8c42debc474c91ba0be06d1400ac567c73f624 (patch) | |
tree | 73de9dcae6da15fd34a3999aeda1f6b65c540e5f /x11/ruby-fox | |
parent | 6555aedea981cbffaf497176c970327db8130813 (diff) | |
download | pkgsrc-fe8c42debc474c91ba0be06d1400ac567c73f624.tar.gz |
Fix build problem (with new toolchain?). Focus pkg/15195.
Diffstat (limited to 'x11/ruby-fox')
-rw-r--r-- | x11/ruby-fox/distinfo | 3 | ||||
-rw-r--r-- | x11/ruby-fox/patches/patch-ab | 23 |
2 files changed, 25 insertions, 1 deletions
diff --git a/x11/ruby-fox/distinfo b/x11/ruby-fox/distinfo index 5392df2ea97..0a699cf98d5 100644 --- a/x11/ruby-fox/distinfo +++ b/x11/ruby-fox/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.1.1.1 2001/08/05 17:24:31 sakamoto Exp $ +$NetBSD: distinfo,v 1.2 2002/01/26 03:50:34 taca Exp $ SHA1 (ruby/FXRuby-0.99.174.tar.gz) = 1c890cc6798d7080f648d9aec7c0880b0c2ece36 Size (ruby/FXRuby-0.99.174.tar.gz) = 685531 bytes SHA1 (patch-aa) = ed54cc9ad60da7684ff1e595e0df06c3f7bee555 +SHA1 (patch-ab) = 637474bf8d428988340e06c5570dbaf104e520ed 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{ |