blob: 4ddfa350022a3aee2a2f11fca0859ec587f25afd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
$NetBSD: patch-ae,v 1.2 2009/11/24 11:15:14 obache Exp $
--- src/tabe_tsidbint.c.orig 2004-01-24 20:14:55.000000000 +0000
+++ src/tabe_tsidbint.c
@@ -272,7 +272,9 @@ tabeTsiDBRecordNumber(struct TsiDB *tsid
switch(tsidb->type) {
case DB_TYPE_DB:
dbp = (DB *)tsidb->dbp;
-#if DB_VERSION >= 303011
+#if DB_VERSION >= 403000
+ errno = dbp->stat(dbp, NULL, &sp, 0);
+#elif DB_VERSION >= 303011
errno = dbp->stat(dbp, &sp, 0);
#else
errno = dbp->stat(dbp, &sp, NULL, 0);
|