summaryrefslogtreecommitdiff
path: root/inputmethod/libtabe/patches/patch-af
blob: d5f151994dd157594c006cfcd80d7d74dd8ad181 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$NetBSD: patch-af,v 1.1 2005/09/28 17:09:43 rillig Exp $

--- src/tabe_tsiyindbint.c.orig	Sun Nov 11 19:16:32 2001
+++ src/tabe_tsiyindbint.c	Fri Dec  7 23:15:21 2001
@@ -268,7 +268,11 @@
   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);