Browse code

Fix compilation error on NetBSD 2.0

git-svn: trunk@2093

Nigel Horne authored on 2006/07/18 00:54:34
Showing 2 changed files
... ...
@@ -1,3 +1,7 @@
1
+Mon Jul 17 16:54:05 BST 2006 (njh)
2
+----------------------------------
3
+ * clamav-milter:	Fix compilation error on NetBSD 2.0
4
+
1 5
 Mon Jul 17 12:15:41 CEST 2006 (tk)
2 6
 ----------------------------------
3 7
   * libclamav/pe.c: fix error path memory leaks
... ...
@@ -23,7 +23,7 @@
23 23
  *
24 24
  * For installation instructions see the file INSTALL that came with this file
25 25
  */
26
-static	char	const	rcsid[] = "$Id: clamav-milter.c,v 1.259 2006/07/17 10:12:55 njh Exp $";
26
+static	char	const	rcsid[] = "$Id: clamav-milter.c,v 1.260 2006/07/17 15:53:33 njh Exp $";
27 27
 
28 28
 #define	CM_VERSION	"devel-170706"
29 29
 
... ...
@@ -84,6 +84,10 @@ static	char	const	rcsid[] = "$Id: clamav-milter.c,v 1.259 2006/07/17 10:12:55 nj
84 84
 #if	HAVE_SYS_PARAM_H
85 85
 #include <sys/param.h>
86 86
 #endif
87
+#if	HAVE_RESOLV_H
88
+#include <arpa/nameser.h>	/* for HEADER */
89
+#include <resolv.h>
90
+#endif
87 91
 
88 92
 #if HAVE_MMAP
89 93
 #if HAVE_SYS_MMAN_H
... ...
@@ -97,7 +101,6 @@ static	char	const	rcsid[] = "$Id: clamav-milter.c,v 1.259 2006/07/17 10:12:55 nj
97 97
 #include <sys/sendfile.h>	/* FIXME: use sendfile on BSD not Linux */
98 98
 #include <libintl.h>
99 99
 #include <locale.h>
100
-#include <resolv.h>
101 100
 
102 101
 #define	gettext_noop(s)	s
103 102
 #define	_(s)	gettext(s)