]> granicus.if.org Git - php/commitdiff
Allow db4.0 & db4.1 here. Patch by Ralf Engelschall (rse@engelschall.com)
authorMarcus Boerger <helly@php.net>
Sat, 23 Nov 2002 21:11:12 +0000 (21:11 +0000)
committerMarcus Boerger <helly@php.net>
Sat, 23 Nov 2002 21:11:12 +0000 (21:11 +0000)
ext/dba/dba_db3.c

index df9396dedeb67848b3c13028eb33400c0ba56379..dd93693d0a26782cc48de3f5c0849c9f59f9e1a3 100644 (file)
@@ -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));