libsasl: added patch to build with db-5.
This commit is contained in:
parent
fded4c7930
commit
71a8e34ca1
1 changed files with 24 additions and 0 deletions
24
srcpkgs/libsasl/patches/0027_db5_support.patch
Normal file
24
srcpkgs/libsasl/patches/0027_db5_support.patch
Normal file
|
@ -0,0 +1,24 @@
|
|||
Author: Ondřej Surý <ondrej@debian.org>
|
||||
Description: Support newer Berkeley DB versions
|
||||
--- sasldb/db_berkeley.c
|
||||
+++ 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);
|
||||
--- utils/dbconverter-2.c
|
||||
+++ 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);
|
Loading…
Reference in a new issue