diff --git a/gencode.c b/gencode.c index 4ada21b..60fb327 100644 --- a/gencode.c +++ b/gencode.c @@ -21,7 +21,7 @@ */ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/libpcap/gencode.c,v 1.171 2002-08-02 03:44:19 guy Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/libpcap/gencode.c,v 1.172 2002-08-02 05:53:53 guy Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -30,16 +30,21 @@ static const char rcsid[] = #ifdef WIN32 #include +#else /* WIN32 */ +#include +#include +#include +#endif /* WIN32 */ +/* + * XXX - why was this included even on UNIX? + */ #ifdef __MINGW32__ #include "IP6_misc.h" #endif -#else /* WIN32 */ +#ifndef WIN32 -#include -#include -#include #ifdef __NetBSD__ #include #endif @@ -69,11 +74,11 @@ struct rtentry; /* declarations in */ #include "ppp.h" #include "sll.h" #include "arcnet.h" -#ifndef WIN32 #ifdef INET6 +#ifndef WIN32 #include /* for "struct addrinfo" */ -#endif /*INET6*/ #endif /* WIN32 */ +#endif /*INET6*/ #include #define ETHERMTU 1500 diff --git a/nametoaddr.c b/nametoaddr.c index 6128666..de2d7af 100644 --- a/nametoaddr.c +++ b/nametoaddr.c @@ -24,7 +24,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/libpcap/nametoaddr.c,v 1.66 2002-08-02 03:44:20 guy Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/libpcap/nametoaddr.c,v 1.67 2002-08-02 05:53:53 guy Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -34,9 +34,6 @@ static const char rcsid[] = #ifdef WIN32 #include -#ifdef __MINGW32__ -#include "IP6_misc.h" -#endif #else /* WIN32 */ #include @@ -45,6 +42,16 @@ static const char rcsid[] = #include #include +#endif /* WIN32 */ + +/* + * XXX - why was this included even on UNIX? + */ +#ifdef __MINGW32__ +#include "IP6_misc.h" +#endif + +#ifndef WIN32 #ifdef HAVE_ETHER_HOSTTON #ifdef HAVE_NETINET_IF_ETHER_H struct mbuf; /* Squelch compiler warnings on some platforms for */