From 793c6289efdb489fd4f8e3f14d19fbcf931d2c70 Mon Sep 17 00:00:00 2001 From: matz Date: Tue, 25 Dec 2007 06:01:22 +0000 Subject: * enum.c (enum_yield): when multiple values yielded from #each pack them into an array. [ruby-dev:32708] * enum.c: all method but all?, any?, one? and none? passed packed multiple values to the block. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/dbm/extconf.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/dbm') diff --git a/ext/dbm/extconf.rb b/ext/dbm/extconf.rb index 0074ab605..4d1226406 100644 --- a/ext/dbm/extconf.rb +++ b/ext/dbm/extconf.rb @@ -36,7 +36,7 @@ def headers.db_check(db) db_prefix ||= "" if (have_library(db, db_prefix+"dbm_open") || have_func(db_prefix+"dbm_open")) and - hdr = self.fetch(db, ["ndbm.h"]).find {|hdr| have_type("DBM", hdr, hsearch)} + hdr = self.fetch(db, ["ndbm.h"]).find {|h| have_type("DBM", h, hsearch)} have_func(db_prefix+"dbm_clearerr") unless have_gdbm $defs << hsearch if hsearch $defs << '-DDBM_HDR="<'+hdr+'>"' -- cgit