]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Dnsserver fixes.
authorFrancesco Chemolli <kinkie@squid-cache.org>
Mon, 16 Nov 2009 11:01:12 +0000 (12:01 +0100)
committerFrancesco Chemolli <kinkie@squid-cache.org>
Mon, 16 Nov 2009 11:01:12 +0000 (12:01 +0100)
A variable was not defined under certain autoconf-related conditions.

lib/inet_ntop.c
src/dnsserver.cc

index 9782883a14b8b153d801facc20a558ca2ce5bf4a..9e74795776e75e14c5fb643f38df276ea28e029c 100644 (file)
@@ -20,6 +20,7 @@
  */
 
 #include "config.h"
+#include "include/inet_ntop.h"
 
 #ifndef HAVE_INET_NTOP
 
index 648b07b5c1a9ab6c23d507077c5e954708c2673c..d112d59ce22666882f0d2e8edc7ef51d55940268 100644 (file)
@@ -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