Skip to content

Commit 24f66fb

Browse files
committed
MFH
1 parent e401c08 commit 24f66fb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ext/dba/dba_db3.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,11 @@ DBA_OPEN_FUNC(db3)
7474
}
7575

7676
if (db_create(&dbp, NULL, 0) == 0 &&
77+
#if (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 1)
78+
dbp->open(dbp, 0, info->path, NULL, type, gmode, filemode) == 0) {
79+
#else
7780
dbp->open(dbp, info->path, NULL, type, gmode, filemode) == 0) {
81+
#endif
7882
dba_db3_data *data;
7983

8084
data = malloc(sizeof(*data));

0 commit comments

Comments
 (0)