SHA256
1
0
forked from pool/postfix
postfix/postfix-db6.diff
2013-06-14 13:29:13 +00:00

24 lines
974 B
Diff

From: Jan Engelhardt <jengelh@inai.de>
Date: 2013-06-14 03:32:16.417459759 +0200
X-Upstream: problem still present in postfix-2.11~20130608
src: allow compilation against libdb-6.0
---
src/util/dict_db.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: postfix-2.9.6/src/util/dict_db.c
===================================================================
--- postfix-2.9.6.orig/src/util/dict_db.c
+++ postfix-2.9.6/src/util/dict_db.c
@@ -699,7 +699,7 @@ static DICT *dict_db_open(const char *cl
if ((errno = db->upgrade(db,db_path,0)) != 0)
msg_fatal("upgrade of database %s: %m",db_path);
}
-#if DB_VERSION_MAJOR == 5 || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 0)
+#if DB_VERSION_MAJOR > 4 || (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));