freebsd-ports/chinese/libtabe/files/patch-src::tabe_tsiyindbint.c
Rong-En Fan cdda09c059 - Update to 0.2.6
- It seems works well on amd64, tested by yinjieh@csie.nctu.edu.tw
  with chinese/xcin25. Remove amd64 from exclude list.

PR:		ports/97960
Submitted by:	rafan (me)
Approved by:	maintainer timeout (7 weeks)
2006-07-19 15:31:46 +00:00

13 lines
415 B
C

--- src/tabe_tsiyindbint.c.orig Fri Apr 21 23:04:40 2006
+++ src/tabe_tsiyindbint.c Fri Apr 21 23:04:55 2006
@@ -275,7 +275,9 @@
switch(tsiyindb->type) {
case DB_TYPE_DB:
dbp = (DB *)tsiyindb->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);