2013-09-26 17:14:40 +02:00

16 lines
492 B
Plaintext

$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);