diff options
author | obache <obache> | 2007-06-12 11:34:29 +0000 |
---|---|---|
committer | obache <obache> | 2007-06-12 11:34:29 +0000 |
commit | 3d6426560ad4e51e0a53b66106f4f4807bd4aa78 (patch) | |
tree | a8db067a7c73efe0c7868bdb8ac2a13fceec6ecf /mail/cyrus-imapd/patches | |
parent | 8621fecc696c7767551a65283a7ed299b8ef0088 (diff) | |
download | pkgsrc-3d6426560ad4e51e0a53b66106f4f4807bd4aa78.tar.gz |
Fix to build with db4>=4.5.
Diffstat (limited to 'mail/cyrus-imapd/patches')
-rw-r--r-- | mail/cyrus-imapd/patches/patch-ag | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/mail/cyrus-imapd/patches/patch-ag b/mail/cyrus-imapd/patches/patch-ag new file mode 100644 index 00000000000..fdb310870e6 --- /dev/null +++ b/mail/cyrus-imapd/patches/patch-ag @@ -0,0 +1,20 @@ +$NetBSD: patch-ag,v 1.4 2007/06/12 11:34:29 obache Exp $ + +--- lib/cyrusdb_berkeley.c.orig 2006-03-17 16:12:32.000000000 +0000 ++++ lib/cyrusdb_berkeley.c +@@ -173,7 +173,15 @@ static int init(const char *dbdir, int m + syslog(LOG_WARNING, + "DBERROR: invalid berkeley_locks_max value, using internal default"); + } else { ++#if DB_VERSION_MAJOR >= 4 ++ r = dbenv->set_lk_max_locks(dbenv, opt); ++ if (!r) ++ r = dbenv->set_lk_max_lockers(dbenv, opt); ++ if (!r) ++ r = dbenv->set_lk_max_objects(dbenv, opt); ++#else + r = dbenv->set_lk_max(dbenv, opt); ++#endif + if (r) { + dbenv->err(dbenv, r, "set_lk_max"); + syslog(LOG_ERR, "DBERROR: set_lk_max(): %s", db_strerror(r)); |