From 1bb2daff1ef4d18ad392d2ba0a1b1236993a7169 Mon Sep 17 00:00:00 2001 From: Willem Toorop Date: Wed, 11 Nov 2015 14:03:16 +0100 Subject: [PATCH] ub_setup_recursing not used without libunbound --- src/context.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/context.c b/src/context.c index ce6b2c89..3b4eebef 100644 --- a/src/context.c +++ b/src/context.c @@ -2176,13 +2176,12 @@ ub_setup_stub(struct ub_ctx *ctx, getdns_context *context) #endif +#ifdef HAVE_LIBUNBOUND static getdns_return_t ub_setup_recursing(struct ub_ctx *ctx, getdns_context *context) { -#ifdef HAVE_LIBUNBOUND _getdns_rr_iter rr_spc, *rr; char ta_str[8192]; -#endif /* TODO: use the root servers via root hints file */ (void) ub_ctx_set_fwd(ctx, NULL); @@ -2200,6 +2199,7 @@ ub_setup_recursing(struct ub_ctx *ctx, getdns_context *context) } return GETDNS_RETURN_GOOD; } +#endif static getdns_return_t _getdns_ns_dns_setup(struct getdns_context *context)