]> git.ipfire.org Git - thirdparty/postfix.git/commitdiff
Support Berkeley DB version 6
authorViktor Dukhovni <postfix-users@dukhovni.org>
Sat, 19 Mar 2016 18:37:16 +0000 (14:37 -0400)
committerViktor Dukhovni <postfix-users@dukhovni.org>
Thu, 26 May 2016 04:41:56 +0000 (00:41 -0400)
postfix/src/util/dict_db.c

index 93ee48098fa4025db936a167abee13eb35d5a306..ba0a54c8b2d437445dcde093ebffab20cfe1abf8 100644 (file)
@@ -693,7 +693,8 @@ static DICT *dict_db_open(const char *class, const char *path, int open_flags,
        msg_fatal("set DB cache size %d: %m", dict_db_cache_size);
     if (type == DB_HASH && db->set_h_nelem(db, DICT_DB_NELM) != 0)
        msg_fatal("set DB hash element count %d: %m", DICT_DB_NELM);
-#if DB_VERSION_MAJOR == 5 || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 0)
+#if DB_VERSION_MAJOR == 6 || DB_VERSION_MAJOR == 5 || \
+       (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 0)
     if ((errno = db->open(db, 0, db_path, 0, type, db_flags, 0644)) != 0)
        FREE_RETURN(dict_surrogate(class, path, open_flags, dict_flags,
                                   "open database %s: %m", db_path));