X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Futils_dns.c;h=0943727536e92e56b384a0b7ebc9542464957724;hb=7c0bcfba668deb45426cf33b5ac721d5a444e8f2;hp=a6643bbf2774e72041b9ba7a891bc84571a65713;hpb=2aff261d44fe933cf1c20b1fd093324c41cea4ba;p=collectd.git diff --git a/src/utils_dns.c b/src/utils_dns.c index a6643bbf..09437275 100644 --- a/src/utils_dns.c +++ b/src/utils_dns.c @@ -35,15 +35,18 @@ #include "collectd.h" +#if HAVE_NETINET_IN_SYSTM_H +# include +#endif #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 @@ -64,19 +67,10 @@ # include #endif -#if HAVE_SYS_SOCKET_H -# include -#endif #if HAVE_NETDB_H # include #endif -#if HAVE_NETINET_IN_SYSTM_H -# include -#endif -#if HAVE_NETINET_IN_H -# include -#endif #if HAVE_NETINET_IP_H # include #endif @@ -90,6 +84,10 @@ # include #endif +#if HAVE_PCAP_H +# include +#endif + #define PCAP_SNAPLEN 1460 #ifndef ETHER_HDR_LEN #define ETHER_ADDR_LEN 6