X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fdns.c;h=364b9587e19c5c49ac6010049c2befa8f503ea35;hb=589c5f25f9cb723575fa16dd22e73dc9e7af0cfd;hp=f3280c0bed9f65ef37d3e8e554be640ca36ab83d;hpb=0384380080a39adb252a4d5dd3a6bf5c27f8faf8;p=collectd.git diff --git a/src/dns.c b/src/dns.c index f3280c0b..364b9587 100644 --- a/src/dns.c +++ b/src/dns.c @@ -1,6 +1,6 @@ /** * 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 @@ -17,7 +17,7 @@ * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * * Authors: - * Florian octo Forster + * Florian octo Forster * Mirko Buffoni **/ @@ -30,9 +30,13 @@ #include "utils_dns.h" #include -#include #include +#include +#if HAVE_PCAP_BPF_H +# include +#endif + /* * Private data types */ @@ -218,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];