summaryrefslogtreecommitdiff
path: root/databases/ruby-bdb1/files/patch-super
diff options
context:
space:
mode:
authorPhilip M. Gollucci <pgollucci@FreeBSD.org>2012-02-08 04:49:53 +0000
committerPhilip M. Gollucci <pgollucci@FreeBSD.org>2012-02-08 04:49:53 +0000
commit14359e448536743a889d4608700be2739dbf5a67 (patch)
treedb69f3ad5df65af0f0c879edad44c41b9581e060 /databases/ruby-bdb1/files/patch-super
parent- Convert to USERS/GROUPS [1] (diff)
- 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. <mi@aldan.algebra.com> Approved by: maintainer timeout (jpaetzel ; 158 days) Sponsored by: RideCharge Inc. / TaxiMagic
Notes
Notes: svn path=/head/; revision=290686
Diffstat (limited to 'databases/ruby-bdb1/files/patch-super')
-rw-r--r--databases/ruby-bdb1/files/patch-super16
1 files changed, 16 insertions, 0 deletions
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) {