summaryrefslogtreecommitdiff
path: root/databases/ruby-bdb1/files/patch-delegate
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-delegate
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
Diffstat (limited to 'databases/ruby-bdb1/files/patch-delegate')
-rw-r--r--databases/ruby-bdb1/files/patch-delegate10
1 files changed, 10 insertions, 0 deletions
diff --git a/databases/ruby-bdb1/files/patch-delegate b/databases/ruby-bdb1/files/patch-delegate
new file mode 100644
index 000000000000..04b9c8735fdb
--- /dev/null
+++ b/databases/ruby-bdb1/files/patch-delegate
@@ -0,0 +1,10 @@
+--- src/delegate.c 2006-09-19 13:06:40.000000000 -0400
++++ src/delegate.c 2011-09-02 13:28:23.000000000 -0400
+@@ -171,5 +171,6 @@
+ ary = rb_class_instance_methods(1, &tmp, rb_mKernel);
+ for (i = 0; i < RARRAY_LEN(ary); i++) {
+- method = StringValuePtr(RARRAY_PTR(ary)[i]);
++ tmp = rb_obj_as_string(RARRAY_PTR(ary)[i]);
++ method = StringValuePtr(tmp);
+ if (!strcmp(method, "==") ||
+ !strcmp(method, "===") || !strcmp(method, "=~")) continue;