From ede9c6a65b9dc72c0588614960598017d8709205 Mon Sep 17 00:00:00 2001 From: Francesco Chemolli Date: Mon, 16 Nov 2009 12:01:12 +0100 Subject: [PATCH] Dnsserver fixes. A variable was not defined under certain autoconf-related conditions. --- lib/inet_ntop.c | 1 + src/dnsserver.cc | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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 -- 2.47.3