diff options
author | piernov <piernov@piernov.org> | 2012-03-04 13:20:42 +0000 |
---|---|---|
committer | piernov <piernov@piernov.org> | 2012-03-04 13:20:42 +0000 |
commit | 75d255709cdb48d1316403a3a62ce22a1b24236e (patch) | |
tree | 27a86145b806f1615cfb8dce795e1ad597e4cb71 /cyrus-sasl/db5_support.patch | |
parent | e8bf636e285304e1c07eec41d96af4f7773e36b1 (diff) | |
download | nutyx-extra-75d255709cdb48d1316403a3a62ce22a1b24236e.tar.gz nutyx-extra-75d255709cdb48d1316403a3a62ce22a1b24236e.tar.bz2 nutyx-extra-75d255709cdb48d1316403a3a62ce22a1b24236e.tar.xz nutyx-extra-75d255709cdb48d1316403a3a62ce22a1b24236e.zip |
cyrus-sasl 2.1.25-2 ajout patch db5
Diffstat (limited to 'cyrus-sasl/db5_support.patch')
-rw-r--r-- | cyrus-sasl/db5_support.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/cyrus-sasl/db5_support.patch b/cyrus-sasl/db5_support.patch new file mode 100644 index 000000000..04d70ce85 --- /dev/null +++ b/cyrus-sasl/db5_support.patch @@ -0,0 +1,24 @@ +Author: Ondrej Sur� <ondrej@debian.org> +Description: Support newer Berkeley DB versions +--- a/sasldb/db_berkeley.c ++++ b/sasldb/db_berkeley.c +@@ -101,7 +101,7 @@ static int berkeleydb_open(const sasl_ut + ret = db_create(mbdb, NULL, 0); + if (ret == 0 && *mbdb != NULL) + { +-#if DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 1 ++#if (DB_VERSION_MAJOR > 4) || ((DB_VERSION_MAJOR == 4) && (DB_VERSION_MINOR >= 1)) + ret = (*mbdb)->open(*mbdb, NULL, path, NULL, DB_HASH, flags, 0660); + #else + ret = (*mbdb)->open(*mbdb, path, NULL, DB_HASH, flags, 0660); +--- a/utils/dbconverter-2.c ++++ b/utils/dbconverter-2.c +@@ -214,7 +214,7 @@ static int berkeleydb_open(const char *p + ret = db_create(mbdb, NULL, 0); + if (ret == 0 && *mbdb != NULL) + { +-#if DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 1 ++#if (DB_VERSION_MAJOR > 4) || ((DB_VERSION_MAJOR == 4) && (DB_VERSION_MINOR >= 1)) + ret = (*mbdb)->open(*mbdb, NULL, path, NULL, DB_HASH, DB_CREATE, 0664); + #else + ret = (*mbdb)->open(*mbdb, path, NULL, DB_HASH, DB_CREATE, 0664); |