summaryrefslogtreecommitdiff
path: root/databases/ruby-bdb/files/patch-src-sequence.c
blob: 909ea1a5d783d9a40227d0c93bab589b28fc9763 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- src/sequence.c.orig	2011-04-06 19:35:39 UTC
+++ src/sequence.c
@@ -66,7 +66,7 @@ bdb_seq_txn_close(VALUE obj, VALUE commit, VALUE real)
 }
 
 static VALUE
-bdb_seq_i_options(VALUE obj, VALUE seqobj)
+bdb_seq_i_options(VALUE obj, VALUE seqobj, int _argc, const VALUE *_argv, VALUE _blockarg)
 {
     VALUE key, value;
     bdb_SEQ *seqst;
@@ -148,7 +148,7 @@ bdb_seq_open(int argc, VALUE *argv, VALUE obj)
         break;
     }
     if (!NIL_P(options)) {
-        rb_iterate(rb_each, options, bdb_seq_i_options, res);
+	rb_block_call(options, rb_intern("each"), 0, NULL, bdb_seq_i_options, res);
     }
     a = bdb_test_recno(obj, &key, &recno, a);
     if (seqst->seqp->open(seqst->seqp, txnid, &key, flags)) {