]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: fix building without libedit in dnsdist.cc as well 11683/head
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Tue, 7 Jun 2022 10:47:45 +0000 (12:47 +0200)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Tue, 7 Jun 2022 10:47:45 +0000 (12:47 +0200)
pdns/dnsdist.cc

index fa35a8eccf8f6900db9973f8956c47718191c2f7..6e11a4c8ce5e3593e4eed8088989bd5b39f34830 100644 (file)
@@ -32,6 +32,7 @@
 #include <sys/resource.h>
 #include <unistd.h>
 
+#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 <editline/readline.h>
 #endif
+#endif /* HAVE_LIBEDIT */
 
 #include "dnsdist-systemd.hh"
 #ifdef HAVE_SYSTEMD