aboutsummaryrefslogtreecommitdiffstats
path: root/nametoaddr.c
diff options
context:
space:
mode:
authorGuy Harris <gharris@steve.local>2009-02-14 14:36:34 -0800
committerGuy Harris <gharris@steve.local>2009-02-14 14:36:34 -0800
commit936df0fbc137374a0ce9ab0f838815551419711e (patch)
tree4cc5826fee96838c73412c53b430196412a2f487 /nametoaddr.c
parent5fb89099c6981a70349603aef01867bc030ad10b (diff)
From Gisle Vanem:
* nametoaddr.c with DECNETLIB defined needs <netdnet/dnetdb.h> included. And which again needs <sys/types.h>. * Remove "IP6_misc.h" since it's already included in pcap-stdinc.h (ref. my patch to pcap-stdinc.h).
Diffstat (limited to 'nametoaddr.c')
-rw-r--r--nametoaddr.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/nametoaddr.c b/nametoaddr.c
index 5203e51..5835e4d 100644
--- a/nametoaddr.c
+++ b/nametoaddr.c
@@ -31,6 +31,11 @@ static const char rcsid[] _U_ =
#include "config.h"
#endif
+#ifdef DECNETLIB
+#include <sys/types.h>
+#include <netdnet/dnetdb.h>
+#endif
+
#ifdef WIN32
#include <pcap-stdinc.h>
@@ -44,13 +49,6 @@ static const char rcsid[] _U_ =
#include <netinet/in.h>
#endif /* WIN32 */
-/*
- * XXX - why was this included even on UNIX?
- */
-#ifdef __MINGW32__
-#include "IP6_misc.h"
-#endif
-
#ifndef WIN32
#ifdef HAVE_ETHER_HOSTTON
/*