wok-stable view cyrus-imapd/stuff/p1.patch @ rev 6110
fox, fox14, glew, perl-net-ldap: fix build_depends (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Sep 04 13:06:54 2010 +0200 (2010-09-04) |
parents | |
children |
line source
1 diff -u lib.old/cyrusdb_berkeley.c lib/cyrusdb_berkeley.c
2 --- lib.old/cyrusdb_berkeley.c 2007-04-05 01:23:42.518845824 +0200
3 +++ lib/cyrusdb_berkeley.c 2007-04-05 01:22:20.000000000 +0200
4 @@ -159,7 +159,15 @@
5 syslog(LOG_WARNING,
6 "DBERROR: invalid berkeley_locks_max value, using internal default");
7 } else {
8 +#if DB_VERSION_MAJOR >= 4
9 + r = dbenv->set_lk_max_locks(dbenv, opt);
10 + if (!r)
11 + r = dbenv->set_lk_max_lockers(dbenv, opt);
12 + if (!r)
13 + r = dbenv->set_lk_max_objects(dbenv, opt);
14 +#else
15 r = dbenv->set_lk_max(dbenv, opt);
16 +#endif
17 if (r) {
18 dbenv->err(dbenv, r, "set_lk_max");
19 syslog(LOG_ERR, "DBERROR: set_lk_max(): %s", db_strerror(r));