$OpenBSD: patch-src_tabe_tsiyindbint_c,v 1.1.1.1 2004/01/14 05:56:23 kevlo Exp $
--- src/tabe_tsiyindbint.c.orig	2001-11-11 12:33:08.000000000 +0000
+++ src/tabe_tsiyindbint.c	2004-01-13 17:55:02.000000000 +0000
@@ -268,7 +268,11 @@ tabeTsiYinDBRecordNumber(struct TsiYinDB
   switch(tsiyindb->type) {
   case DB_TYPE_DB:
     dbp = (DB *)tsiyindb->dbp;
+#ifdef HAVE_DB3_STAT3
+    errno = dbp->stat(dbp, &sp, 0);
+#else
     errno = dbp->stat(dbp, &sp, NULL, 0);
+#endif
     if (!errno) {
 #ifndef HAVE_DB3
       return(sp->bt_nrecs);
