X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fdns.c;h=364b9587e19c5c49ac6010049c2befa8f503ea35;hb=ba9b76d4be49c6a45b32a508c48e828a583b6dfc;hp=8a2e87e6d25d2a16dfa425e4dda538333571b59a;hpb=fa9fd186f4e09c24a02d9541c2409d21bf282087;p=collectd.git diff --git a/src/dns.c b/src/dns.c index 8a2e87e6..364b9587 100644 --- a/src/dns.c +++ b/src/dns.c @@ -1,6 +1,7 @@ /** * collectd - src/dns.c - * Copyright (C) 2006,2007 Florian octo Forster + * Copyright (C) 2006-2011 Florian octo Forster + * Copyright (C) 2009 Mirko Buffoni * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -16,7 +17,8 @@ * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * * Authors: - * Florian octo Forster + * Florian octo Forster + * Mirko Buffoni **/ #define _BSD_SOURCE @@ -28,9 +30,13 @@ #include "utils_dns.h" #include -#include #include +#include +#if HAVE_PCAP_BPF_H +# include +#endif + /* * Private data types */ @@ -216,7 +222,7 @@ static void dns_child_callback (const rfc1035_header_t *dns) pthread_mutex_unlock (&opcode_mutex); } -static void *dns_child_loop (void __attribute__((unused)) *dummy) +static void *dns_child_loop (__attribute__((unused)) void *dummy) { pcap_t *pcap_obj; char pcap_error[PCAP_ERRBUF_SIZE];