From: Francesco Chemolli Date: Mon, 16 Nov 2009 11:01:12 +0000 (+0100) Subject: Dnsserver fixes. X-Git-Tag: SQUID_3_2_0_1~574 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ede9c6a65b9dc72c0588614960598017d8709205;p=thirdparty%2Fsquid.git Dnsserver fixes. A variable was not defined under certain autoconf-related conditions. --- diff --git a/lib/inet_ntop.c b/lib/inet_ntop.c index 9782883a14..9e74795776 100644 --- a/lib/inet_ntop.c +++ b/lib/inet_ntop.c @@ -20,6 +20,7 @@ */ #include "config.h" +#include "include/inet_ntop.h" #ifndef HAVE_INET_NTOP diff --git a/src/dnsserver.cc b/src/dnsserver.cc index 648b07b5c1..d112d59ce2 100644 --- a/src/dnsserver.cc +++ b/src/dnsserver.cc @@ -465,9 +465,9 @@ main(int argc, char *argv[]) char request[512]; char *t = NULL; int c; + int opt_s = 0; #if HAVE_RES_INIT - int opt_s = 0; res_init(); #endif