diff options
Diffstat (limited to 'lang/ruby18-base/patches/patch-ac')
-rw-r--r-- | lang/ruby18-base/patches/patch-ac | 32 |
1 files changed, 29 insertions, 3 deletions
diff --git a/lang/ruby18-base/patches/patch-ac b/lang/ruby18-base/patches/patch-ac index 03fc4d9e2b5..92479ea910b 100644 --- a/lang/ruby18-base/patches/patch-ac +++ b/lang/ruby18-base/patches/patch-ac @@ -1,8 +1,34 @@ -$NetBSD: patch-ac,v 1.5 2007/01/19 19:50:46 minskim Exp $ +$NetBSD: patch-ac,v 1.6 2007/10/28 02:33:24 taca Exp $ ---- ext/dbm/extconf.rb.orig 2007-01-19 11:39:20.000000000 -0800 +--- ext/dbm/extconf.rb.orig 2007-02-13 08:01:19.000000000 +0900 +++ ext/dbm/extconf.rb -@@ -36,7 +36,8 @@ def headers.db_check(db) +@@ -5,13 +5,15 @@ dir_config("dbm") + if dblib = with_config("dbm-type", nil) + dblib = dblib.split(/[ ,]+/) + else +- dblib = %w(db db2 db1 dbm gdbm gdbm_compat qdbm) ++ dblib = %w(db db2 db1 db4 db3 dbm gdbm gdbm_compat qdbm) + end + + headers = { + "db" => ["db.h"], + "db1" => ["db1/ndbm.h", "db1.h", "ndbm.h"], + "db2" => ["db2/db.h", "db2.h", "db.h"], ++ "db3" => ["db3/db.h", "db3.h", "db.h"], ++ "db4" => ["db4/db.h", "db4.h", "db.h"], + "dbm" => ["ndbm.h"], + "gdbm" => ["gdbm-ndbm.h", "ndbm.h"], + "gdbm_compat" => ["gdbm-ndbm.h", "ndbm.h"], +@@ -24,7 +26,7 @@ def headers.db_check(db) + hsearch = nil + + case db +- when /^db2?$/ ++ when /^db[2-4]?$/ + db_prefix = "__db_n" + hsearch = "-DDB_DBM_HSEARCH " + when "gdbm" +@@ -36,7 +38,8 @@ def headers.db_check(db) db_prefix ||= "" if (have_library(db, db_prefix+"dbm_open") || have_func(db_prefix+"dbm_open")) and |