summaryrefslogtreecommitdiff
path: root/mail/bogofilter/patches/patch-ac
blob: f721e8537b9c27f250319530df3043dec31aa13e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$NetBSD: patch-ac,v 1.2 2005/01/17 15:22:33 wiz Exp $

--- src/datastore_db.c.orig	2004-09-28 23:28:04.000000000 -0400
+++ src/datastore_db.c
@@ -237,7 +237,11 @@ static uint32_t get_psize(DB *dbp)
     uint32_t ret, pagesize;
     DB_BTREE_STAT *dbstat = NULL;
 
+#if (DB_VERSION_MAJOR == 4) && (DB_VERSION_MINOR >= 3)
+    ret = dbp->stat(dbp, NULL, &dbstat, DB_FAST_STAT);
+#else
     ret = dbp->stat(dbp, &dbstat, DB_FAST_STAT);
+#endif
     if (ret) {
 	dbp->err (dbp, ret, "%s (db) DB->stat", progname);
 	return 0xffffffff;