summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/dba/dba_db3.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/dba/dba_db3.c b/ext/dba/dba_db3.c
index df9396dede..dd93693d0a 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));