From 7559b7122a2d8b2b3217cd0fe32bc3cd4d327357 Mon Sep 17 00:00:00 2001 From: Peter van Dijk Date: Tue, 7 Jun 2022 12:47:45 +0200 Subject: [PATCH] dnsdist: fix building without libedit in dnsdist.cc as well --- pdns/dnsdist.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pdns/dnsdist.cc b/pdns/dnsdist.cc index fa35a8eccf..6e11a4c8ce 100644 --- a/pdns/dnsdist.cc +++ b/pdns/dnsdist.cc @@ -32,6 +32,7 @@ #include #include +#ifdef HAVE_LIBEDIT #if defined (__OpenBSD__) || defined(__NetBSD__) // If this is not undeffed, __attribute__ wil be redefined by /usr/include/readline/rlstdc.h #undef __STRICT_ANSI__ @@ -39,6 +40,7 @@ #else #include #endif +#endif /* HAVE_LIBEDIT */ #include "dnsdist-systemd.hh" #ifdef HAVE_SYSTEMD -- 2.47.2