diff options
author | root <root@rshg054.dnsready.net> | 2012-08-19 00:04:07 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-08-19 00:04:07 +0000 |
commit | c512f9eb344575ac6bce0b13729c05e1760cd094 (patch) | |
tree | 8d60a9bd559a941bba52a67170900c159d2024eb /testing/cyrus-sasl/0027_db5_support.patch | |
parent | 948da5eabcbf8d74270e661d0730ba1c203913f5 (diff) |
Sun Aug 19 00:04:07 UTC 2012
Diffstat (limited to 'testing/cyrus-sasl/0027_db5_support.patch')
-rw-r--r-- | testing/cyrus-sasl/0027_db5_support.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/testing/cyrus-sasl/0027_db5_support.patch b/testing/cyrus-sasl/0027_db5_support.patch new file mode 100644 index 000000000..522824074 --- /dev/null +++ b/testing/cyrus-sasl/0027_db5_support.patch @@ -0,0 +1,24 @@ +Author: Ondřej 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); |