From 14359e448536743a889d4608700be2739dbf5a67 Mon Sep 17 00:00:00 2001 From: "Philip M. Gollucci" Date: Wed, 8 Feb 2012 04:49:53 +0000 Subject: - allow compile w/ ruby1.9, however note that its not completely compatible. this is better then nothing, and will help the 1.8 -> 1.9 transition PR: ports/160404 Submitted by: Mikhail T. Approved by: maintainer timeout (jpaetzel ; 158 days) Sponsored by: RideCharge Inc. / TaxiMagic --- databases/ruby-bdb1/files/patch-super | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 databases/ruby-bdb1/files/patch-super (limited to 'databases/ruby-bdb1/files/patch-super') diff --git a/databases/ruby-bdb1/files/patch-super b/databases/ruby-bdb1/files/patch-super new file mode 100644 index 000000000000..f90e04a63d36 --- /dev/null +++ b/databases/ruby-bdb1/files/patch-super @@ -0,0 +1,16 @@ +The RCLASS_SUPER define is present in both Ruby 1.8 and 1.9. + +Direct access to "super" no longer works in 1.9 (the field is +not there), but the define continues to work properly. + + -mi + +--- src/bdb1.c 2006-09-20 12:41:01.000000000 -0400 ++++ src/bdb1.c 2011-09-02 12:27:34.000000000 -0400 +@@ -692,5 +692,5 @@ + break; + } +- cl = RCLASS(cl)->super; ++ cl = RCLASS_SUPER(cl); + } + if (!cl) { -- cgit v1.2.3