pkgsrc/inputmethod/libtabe/patches/patch-ae

16 lines
440 B
Text

$NetBSD: patch-ae,v 1.1 2005/09/28 17:09:43 rillig Exp $
--- src/tabe_tsidbint.c.orig Sun Nov 11 19:15:46 2001
+++ src/tabe_tsidbint.c Fri Dec 7 23:13:15 2001
@@ -265,7 +265,11 @@
switch(tsidb->type) {
case DB_TYPE_DB:
dbp = (DB *)tsidb->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);