wok view cyrus-imapd/stuff/p1.patch @ rev 13615
Up+fix: lm-sensors (3.3.3) Add kernel patch, linux-hwmon as dep (we need more i2c mods)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Nov 13 10:01:24 2012 +0100 (2012-11-13) |
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));