]> The Tcpdump Group git mirrors - libpcap/blobdiff - gencode.c
Include <netdb.h> before <pcap-namedb.h>, as <netdb.h> is included to
[libpcap] / gencode.c
index d687e252155120ad14a230ae389227dfb5f01533..1a5361f61ec2bd504c875f972efef19f125eb668 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.162 2002-04-06 23:57:52 guy Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/libpcap/gencode.c,v 1.163 2002-04-07 00:04:37 guy Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -56,10 +56,10 @@ struct rtentry;
 #include "ppp.h"
 #include "sll.h"
 #include "arcnet.h"
-#include <pcap-namedb.h>
 #ifdef INET6
-#include <netdb.h>
+#include <netdb.h>     /* for "struct addrinfo" */
 #endif /*INET6*/
+#include <pcap-namedb.h>
 
 #define ETHERMTU       1500