wok diff cyrus-imapd/stuff/p1.patch @ rev 16125

ARM: add xorg-libXdamage and conky
author Christophe Lincoln <pankso@slitaz.org>
date Sun Mar 23 22:52:11 2014 +0100 (2014-03-23)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/cyrus-imapd/stuff/p1.patch	Sun Mar 23 22:52:11 2014 +0100
     1.3 @@ -0,0 +1,19 @@
     1.4 +diff -u lib.old/cyrusdb_berkeley.c lib/cyrusdb_berkeley.c
     1.5 +--- lib.old/cyrusdb_berkeley.c	2007-04-05 01:23:42.518845824 +0200
     1.6 ++++ lib/cyrusdb_berkeley.c	2007-04-05 01:22:20.000000000 +0200
     1.7 +@@ -159,7 +159,15 @@
     1.8 + 	syslog(LOG_WARNING,
     1.9 + 	       "DBERROR: invalid berkeley_locks_max value, using internal default");
    1.10 +     } else {
    1.11 ++#if DB_VERSION_MAJOR >= 4
    1.12 ++  r = dbenv->set_lk_max_locks(dbenv, opt);
    1.13 ++  if (!r)
    1.14 ++  r = dbenv->set_lk_max_lockers(dbenv, opt);
    1.15 ++  if (!r)
    1.16 ++  r = dbenv->set_lk_max_objects(dbenv, opt);
    1.17 ++#else
    1.18 + 	r = dbenv->set_lk_max(dbenv, opt);
    1.19 ++#endif
    1.20 + 	if (r) {
    1.21 + 	    dbenv->err(dbenv, r, "set_lk_max");
    1.22 + 	    syslog(LOG_ERR, "DBERROR: set_lk_max(): %s", db_strerror(r));