]> The Tcpdump Group git mirrors - libpcap/commitdiff
Include "IP6_misc.h" even on UNIX if __MINGW32__ is defined, as had
authorguy <guy>
Fri, 2 Aug 2002 05:53:53 +0000 (05:53 +0000)
committerguy <guy>
Fri, 2 Aug 2002 05:53:53 +0000 (05:53 +0000)
been the case before the previous checkin.

gencode.c
nametoaddr.c

index 4ada21b29b37ce2d7f95eda0a30d53adbad19088..60fb3276fb138827ae988be64e02c66451fcb49b 100644 (file)
--- 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 <pcap-stdinc.h>
+#else /* WIN32 */
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <sys/time.h>
+#endif /* WIN32 */
 
+/*
+ * XXX - why was this included even on UNIX?
+ */
 #ifdef __MINGW32__
 #include "IP6_misc.h"
 #endif
 
-#else /* WIN32 */
+#ifndef WIN32
 
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <sys/time.h>
 #ifdef __NetBSD__
 #include <sys/param.h>
 #endif
@@ -69,11 +74,11 @@ struct rtentry;             /* declarations in <net/if.h> */
 #include "ppp.h"
 #include "sll.h"
 #include "arcnet.h"
-#ifndef WIN32
 #ifdef INET6
+#ifndef WIN32
 #include <netdb.h>     /* for "struct addrinfo" */
-#endif /*INET6*/
 #endif /* WIN32 */
+#endif /*INET6*/
 #include <pcap-namedb.h>
 
 #define ETHERMTU       1500
index 61286662adb5ccd8a0e4e1e15a229fb24b0b7cb1..de2d7af35c43ff0c307d2c9aa516f6493102414e 100644 (file)
@@ -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 <pcap-stdinc.h>
 
-#ifdef __MINGW32__
-#include "IP6_misc.h"
-#endif
 #else /* WIN32 */
 
 #include <sys/param.h>
@@ -45,6 +42,16 @@ static const char rcsid[] =
 #include <sys/time.h>
 
 #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
 #ifdef HAVE_NETINET_IF_ETHER_H
 struct mbuf;           /* Squelch compiler warnings on some platforms for */