]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: fix building without libedit
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Fri, 11 Feb 2022 14:50:58 +0000 (15:50 +0100)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Fri, 11 Feb 2022 14:50:58 +0000 (15:50 +0100)
pdns/dnsdist-console.cc

index 5a7de283b03f019d7bb6678d053560bc3a88b81c..bd1b1b356e5cefa9fb39cc72c12357fe39e57b7e 100644 (file)
@@ -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<ConsoleKeyword> g_consoleKeywords{
   /* keyword, function, parameters, description */