mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-14 17:59:59 +00:00
96acc14b6c
Postfix is Wietse Venema's mail server that started life at IBM research as an alternative to the widely-used Sendmail program. Postfix attempts to be fast, easy to administer, and secure. The outside has a definite Sendmail-ish flavor, but the inside is completely different. Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
27 lines
1014 B
Diff
27 lines
1014 B
Diff
Subject: [PATCH] add db6 support db6
|
|
|
|
Upstream-Status: Backport
|
|
|
|
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
|
|
---
|
|
src/util/dict_db.c | 3 ++-
|
|
1 files changed, 2 insertions(+), 1 deletions(-)
|
|
|
|
diff --git a/src/util/dict_db.c b/src/util/dict_db.c
|
|
index 93ee480..f1ae66b 100644
|
|
--- a/src/util/dict_db.c
|
|
+++ b/src/util/dict_db.c
|
|
@@ -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));
|
|
--
|
|
1.7.1
|
|
|