From 1827a58de0d6b368a70cf5377136a9276df6a485 Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Sat, 23 Nov 2002 21:11:12 +0000 Subject: [PATCH] Allow db4.0 & db4.1 here. Patch by Ralf Engelschall (rse@engelschall.com) --- ext/dba/dba_db3.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ext/dba/dba_db3.c b/ext/dba/dba_db3.c index df9396dedeb..dd93693d0a2 100644 --- a/ext/dba/dba_db3.c +++ b/ext/dba/dba_db3.c @@ -74,7 +74,11 @@ DBA_OPEN_FUNC(db3) } if (db_create(&dbp, NULL, 0) == 0 && +#if (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 1) + dbp->open(dbp, 0, info->path, NULL, type, gmode, filemode) == 0) { +#else dbp->open(dbp, info->path, NULL, type, gmode, filemode) == 0) { +#endif dba_db3_data *data; data = emalloc(sizeof(*data));