X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Futils_dns.c;h=eefde9683de10c25f100a9ec99056bf6e77ba549;hb=8aad55ab7d737a97d5927458b2b00885e27cae4d;hp=80a2ee577f7213c4182a57b70e5f220d6d4d92fa;hpb=59dded4cc1a2077ad11c6e9b507e15ad19e0e38c;p=collectd.git diff --git a/src/utils_dns.c b/src/utils_dns.c index 80a2ee57..eefde968 100644 --- a/src/utils_dns.c +++ b/src/utils_dns.c @@ -1,12 +1,12 @@ /* * collectd - src/utils_dns.c - * Modifications Copyright (C) 2006 Florian octo Forster - * Copyright (C) 2002 The Measurement Factory, Inc. + * Copyright (C) 2006 Florian octo Forster + * Copyright (C) 2002 The Measurement Factory, Inc. * All rights reserved. - * + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: - * + * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright notice, @@ -30,50 +30,26 @@ * * Authors: * The Measurement Factory, Inc. - * Florian octo Forster + * Florian octo Forster */ +#define _DEFAULT_SOURCE #define _BSD_SOURCE #include "collectd.h" #include "plugin.h" #include "common.h" -#if HAVE_NETINET_IN_SYSTM_H -# include -#endif -#if HAVE_NETINET_IN_H -# include -#endif -#if HAVE_NETINET_IP6_H -# include -#endif -#if HAVE_NETINET_IP_COMPAT_H -# include -#endif -#if HAVE_ARPA_INET_H -# include -#endif #if HAVE_SYS_SOCKET_H # include #endif -#if HAVE_ARPA_NAMESER_H -# include -#endif -#if HAVE_ARPA_NAMESER_COMPAT_H -# include -#endif - #if HAVE_NET_IF_ARP_H # include #endif #if HAVE_NET_IF_H # include #endif -#if HAVE_NETINET_IF_ETHER_H -# include -#endif #if HAVE_NET_PPP_DEFS_H # include #endif @@ -81,23 +57,45 @@ # include #endif -#if HAVE_NETDB_H -# include +#if HAVE_NETINET_IN_SYSTM_H +# include +#endif +#if HAVE_NETINET_IN_H +# include +#endif +#if HAVE_NETINET_IP6_H +# include +#endif +#if HAVE_NETINET_IP_COMPAT_H +# include +#endif +#if HAVE_NETINET_IF_ETHER_H +# include #endif - #if HAVE_NETINET_IP_H # include #endif #ifdef HAVE_NETINET_IP_VAR_H # include #endif -#if HAVE_NETINET_IP6_H -# include -#endif #if HAVE_NETINET_UDP_H # include #endif +#if HAVE_ARPA_INET_H +# include +#endif +#if HAVE_ARPA_NAMESER_H +# include +#endif +#if HAVE_ARPA_NAMESER_COMPAT_H +# include +#endif + +#if HAVE_NETDB_H +# include +#endif + #if HAVE_PCAP_H # include #endif