From: Peter van Dijk Date: Tue, 7 Jun 2022 10:47:45 +0000 (+0200) Subject: dnsdist: fix building without libedit in dnsdist.cc as well X-Git-Tag: auth-4.8.0-alpha0~75^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F11683%2Fhead;p=thirdparty%2Fpdns.git dnsdist: fix building without libedit in dnsdist.cc as well --- 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