summaryrefslogtreecommitdiff
path: root/multitech/recipes/cyrus-sasl/cyrus-sasl-2.1.19/cyrus-sasl-2.1.23-db5-fix.patch
diff options
context:
space:
mode:
authorJesse Gilles <jgilles@multitech.com>2011-10-04 10:34:28 -0500
committerJesse Gilles <jgilles@multitech.com>2011-10-04 10:34:28 -0500
commit63ff1a6df1bceb564791695fd00b102e0dab2993 (patch)
tree7d845ed0edf7bf203194fb451d9944e7ff0c6dc8 /multitech/recipes/cyrus-sasl/cyrus-sasl-2.1.19/cyrus-sasl-2.1.23-db5-fix.patch
parent32f1fc8fd733d7c1a4da2844b0259f9f6691894e (diff)
fix cyrus-sasl 2.1.19 build
Diffstat (limited to 'multitech/recipes/cyrus-sasl/cyrus-sasl-2.1.19/cyrus-sasl-2.1.23-db5-fix.patch')
-rw-r--r--multitech/recipes/cyrus-sasl/cyrus-sasl-2.1.19/cyrus-sasl-2.1.23-db5-fix.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/multitech/recipes/cyrus-sasl/cyrus-sasl-2.1.19/cyrus-sasl-2.1.23-db5-fix.patch b/multitech/recipes/cyrus-sasl/cyrus-sasl-2.1.19/cyrus-sasl-2.1.23-db5-fix.patch
new file mode 100644
index 0000000..fa25896
--- /dev/null
+++ b/multitech/recipes/cyrus-sasl/cyrus-sasl-2.1.19/cyrus-sasl-2.1.23-db5-fix.patch
@@ -0,0 +1,23 @@
+--- a/sasldb/db_berkeley.c.orig 2010-10-04 21:11:15.044010468 -0400
++++ a/sasldb/db_berkeley.c 2010-10-04 21:12:18.921998718 -0400
+@@ -100,7 +100,7 @@
+ 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_MINOR >= 1) || DB_VERSION_MAJOR > 4
+ 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.orig 2010-10-04 21:23:39.778000256 -0400
++++ a/utils/dbconverter-2.c 2010-10-04 21:24:50.384999893 -0400
+@@ -214,7 +214,7 @@
+ 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_MINOR >= 1) || DB_VERSION_MAJOR > 4
+ ret = (*mbdb)->open(*mbdb, NULL, path, NULL, DB_HASH, DB_CREATE, 0664);
+ #else
+ ret = (*mbdb)->open(*mbdb, path, NULL, DB_HASH, DB_CREATE, 0664);