Project

General

Profile

Backport #6021 » dbm.patch

Anonymous, 02/16/2012 03:55 PM

View differences:

ext/dbm/extconf.rb 2012-02-15 16:08:55.509671062 +0100
end
if (have_library(db, db_prefix+"dbm_open") || have_func(db_prefix+"dbm_open")) and
hdr = self.fetch(db, ["ndbm.h"]).find {|h| have_type("DBM", h, hsearch)} or
hdr = self.fetch(db, ["ndbm.h"]).find {|h| have_type("DBM", ["db.h", h], hsearch)}
(hdr = self.fetch(db, ["ndbm.h"]).find {|h| have_type("DBM", h, hsearch)} or
hdr = self.fetch(db, ["ndbm.h"]).find {|h| have_type("DBM", ["db.h", h], hsearch)})
have_func(db_prefix+"dbm_clearerr") unless have_gdbm
$defs << hsearch if hsearch
case db
(2-2/2)