From: Peter van Dijk Date: Fri, 11 Feb 2022 14:50:58 +0000 (+0100) Subject: dnsdist: fix building without libedit X-Git-Tag: auth-4.7.0-alpha1~7^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a704201b274ffa0470cfcae50cff627d69e82216;p=thirdparty%2Fpdns.git dnsdist: fix building without libedit --- diff --git a/pdns/dnsdist-console.cc b/pdns/dnsdist-console.cc index 5a7de283b0..bd1b1b356e 100644 --- a/pdns/dnsdist-console.cc +++ b/pdns/dnsdist-console.cc @@ -447,7 +447,7 @@ void doConsole() } } -#ifndef DISABLE_COMPLETION +#if defined(HAVE_LIBEDIT) and not defined(DISABLE_COMPLETION) /**** CARGO CULT CODE AHEAD ****/ const std::vector g_consoleKeywords{ /* keyword, function, parameters, description */