diff options
author | James Meyer <james.meyer@operamail.com> | 2012-08-07 16:04:17 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2012-08-07 16:04:17 (GMT) |
commit | 927e681145873e5045d07c9b7bb97f98e662040d (patch) | |
tree | 168eabeb632c9922c5e281436bc0967fea7f8304 /abs/core/libsasl/0027_db5_support.patch | |
parent | 9b52b29dd1f40f1fffea8fe268ab833c2db8b293 (diff) | |
download | linhes_pkgbuild-927e681145873e5045d07c9b7bb97f98e662040d.zip linhes_pkgbuild-927e681145873e5045d07c9b7bb97f98e662040d.tar.gz linhes_pkgbuild-927e681145873e5045d07c9b7bb97f98e662040d.tar.bz2 |
libsasl 2.1.23
Diffstat (limited to 'abs/core/libsasl/0027_db5_support.patch')
-rw-r--r-- | abs/core/libsasl/0027_db5_support.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/abs/core/libsasl/0027_db5_support.patch b/abs/core/libsasl/0027_db5_support.patch new file mode 100644 index 0000000..5228240 --- /dev/null +++ b/abs/core/libsasl/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); |