wok-6.x view cyrus-sasl/stuff/0027_db5_support.patch @ rev 19488
Update SliTaz projects: slitaz-base-files (312), slitaz-configs (295), slitaz-doc (158), slitaz-tools (1004), tazinst (83), tazlito (439), tazpanel (606), tazpkg (927), tazusb (192), tazweb (172).
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Nov 12 13:09:26 2016 +0200 (2016-11-12) |
parents | |
children |
line source
1 Author: Ondřej Surý <ondrej@debian.org>
2 Description: Support newer Berkeley DB versions
3 --- a/sasldb/db_berkeley.c
4 +++ b/sasldb/db_berkeley.c
5 @@ -101,7 +101,7 @@ static int berkeleydb_open(const sasl_ut
6 ret = db_create(mbdb, NULL, 0);
7 if (ret == 0 && *mbdb != NULL)
8 {
9 -#if DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 1
10 +#if (DB_VERSION_MAJOR > 4) || ((DB_VERSION_MAJOR == 4) && (DB_VERSION_MINOR >= 1))
11 ret = (*mbdb)->open(*mbdb, NULL, path, NULL, DB_HASH, flags, 0660);
12 #else
13 ret = (*mbdb)->open(*mbdb, path, NULL, DB_HASH, flags, 0660);
14 --- a/utils/dbconverter-2.c
15 +++ b/utils/dbconverter-2.c
16 @@ -214,7 +214,7 @@ static int berkeleydb_open(const char *p
17 ret = db_create(mbdb, NULL, 0);
18 if (ret == 0 && *mbdb != NULL)
19 {
20 -#if DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 1
21 +#if (DB_VERSION_MAJOR > 4) || ((DB_VERSION_MAJOR == 4) && (DB_VERSION_MINOR >= 1))
22 ret = (*mbdb)->open(*mbdb, NULL, path, NULL, DB_HASH, DB_CREATE, 0664);
23 #else
24 ret = (*mbdb)->open(*mbdb, path, NULL, DB_HASH, DB_CREATE, 0664);