From: guy Date: Fri, 2 Aug 2002 05:53:53 +0000 (+0000) Subject: Include "IP6_misc.h" even on UNIX if __MINGW32__ is defined, as had X-Git-Tag: libpcap-0.8-bp~156 X-Git-Url: https://git.tcpdump.org/libpcap/commitdiff_plain/bf6b573fc3a55b0c1d1388aed9f48438d7881482 Include "IP6_misc.h" even on UNIX if __MINGW32__ is defined, as had been the case before the previous checkin. --- diff --git a/gencode.c b/gencode.c index 4ada21b2..60fb3276 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 61286662..de2d7af3 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 */