$NetBSD: patch-ac,v 1.1 2006/10/16 19:20:27 schwarz Exp $ --- chkhistory_db.c.orig 2006-10-16 21:08:31.000000000 +0200 +++ chkhistory_db.c 2006-10-16 21:13:25.000000000 +0200 @@ -5,6 +5,9 @@ /* be used. */ #include +#if HAVE_STRING_H +# include /* for strlen() */ +#endif #include "suck_config.h" #include "suck.h" @@ -47,8 +50,13 @@ #endif #ifdef USE_DBM -#include -#define close_history() dbmclose(); +# ifdef __APPLE__ /* Darwin has ndbm.h, but libdbm */ +# define USE_NDBM +# undef USE_DBM +# else +# include +# define close_history() dbmclose(); +# endif #endif #ifdef USE_GDBM