summaryrefslogtreecommitdiff
path: root/lib/mu_dbm.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2006-10-16 14:50:10 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2006-10-16 14:50:10 +0000
commit2cc6054795fb8847de20a34b5ec35c3d5c5c4174 (patch)
tree84c3e66d8ddbb3560315b211cf854086ef8e6065 /lib/mu_dbm.c
parent0ed5c491cdab5916aa52fbfe22d7ecb5f230ac4d (diff)
downloadmailutils-2cc6054795fb8847de20a34b5ec35c3d5c5c4174.tar.gz
mailutils-2cc6054795fb8847de20a34b5ec35c3d5c5c4174.tar.bz2
Support for Berkeley DB 3, 4
Diffstat (limited to 'lib/mu_dbm.c')
-rw-r--r--lib/mu_dbm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/mu_dbm.c b/lib/mu_dbm.c
index a03e9c007..e83a3e312 100644
--- a/lib/mu_dbm.c
+++ b/lib/mu_dbm.c
@@ -247,7 +247,11 @@ mu_dbm_open (char *name, DBM_FILE *dbm, int flags, int mode)
rc = db_create (&db, NULL, 0);
if (rc != 0 || db == NULL)
return rc;
+# if DB_VERSION_MAJOR == 3
rc = db->open (db, pfname, NULL, DB_HASH, f, mode);
+# else
+ rc = db->open (db, NULL, pfname, NULL, DB_HASH, f, mode);
+# endif
#endif
free (pfname);

Return to:

Send suggestions and report system problems to the System administrator.