blob: 0c4bc288e3639fbcf8946a9fe2a1c97fdd92d32b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
$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
|