From f99d65ce60f444e12182215205c698c9d7885c2e Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Tue, 10 Apr 2007 17:09:09 +0200 Subject: [PATCH] src/utils_dns.c: Include `sys/socket.h' before `net/if_arp.h'. --- src/utils_dns.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/utils_dns.c b/src/utils_dns.c index 6541b897..09437275 100644 --- a/src/utils_dns.c +++ b/src/utils_dns.c @@ -41,12 +41,12 @@ #if HAVE_NETINET_IN_H # include #endif -#if HAVE_PCAP_H -# include -#endif #if HAVE_ARPA_INET_H # include #endif +#if HAVE_SYS_SOCKET_H +# include +#endif #if HAVE_ARPA_NAMESER_H # include @@ -67,9 +67,6 @@ # include #endif -#if HAVE_SYS_SOCKET_H -# include -#endif #if HAVE_NETDB_H # include #endif @@ -87,6 +84,10 @@ # include #endif +#if HAVE_PCAP_H +# include +#endif + #define PCAP_SNAPLEN 1460 #ifndef ETHER_HDR_LEN #define ETHER_ADDR_LEN 6 -- 2.30.2