From: Florian Forster Date: Tue, 10 Apr 2007 15:09:09 +0000 (+0200) Subject: src/utils_dns.c: Include `sys/socket.h' before `net/if_arp.h'. X-Git-Tag: collectd-3.11.4~1 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f99d65ce60f444e12182215205c698c9d7885c2e;p=collectd.git src/utils_dns.c: Include `sys/socket.h' before `net/if_arp.h'. --- 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