freebsd-ports/databases/ruby-bdb1/files/patch-delegate
Philip M. Gollucci 14359e4485 - 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
2012-02-08 04:49:53 +00:00

10 lines
462 B
Text

--- 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;