$NetBSD: patch-aa,v 1.4 2009/11/24 11:15:14 obache Exp $ --- configure.orig 2004-09-20 06:16:48.000000000 +0000 +++ configure @@ -19253,7 +19253,9 @@ errno = db_open("foo.db", DB_BTREE, DB_C #endif if(errno) return errno; -#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);