pkgsrc/news/suck/patches/patch-ac
2006-10-16 19:20:27 +00:00

30 lines
641 B
Text

$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 <stdio.h>
+#if HAVE_STRING_H
+# include <string.h> /* for strlen() */
+#endif
#include "suck_config.h"
#include "suck.h"
@@ -47,8 +50,13 @@
#endif
#ifdef USE_DBM
-#include <dbm.h>
-#define close_history() dbmclose();
+# ifdef __APPLE__ /* Darwin has ndbm.h, but libdbm */
+# define USE_NDBM
+# undef USE_DBM
+# else
+# include <dbm.h>
+# define close_history() dbmclose();
+# endif
#endif
#ifdef USE_GDBM