From: Otto Moerbeek Date: Fri, 2 Sep 2022 10:27:53 +0000 (+0200) Subject: Fix build if dnstap is not enabled X-Git-Tag: rec-4.8.0-alpha1~37^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F11896%2Fhead;p=thirdparty%2Fpdns.git Fix build if dnstap is not enabled --- diff --git a/pdns/lwres.cc b/pdns/lwres.cc index 422e349063..650e868264 100644 --- a/pdns/lwres.cc +++ b/pdns/lwres.cc @@ -58,12 +58,6 @@ thread_local TCPOutConnectionManager t_tcp_manager; std::shared_ptr g_slogout; -#ifdef HAVE_FSTRM -#include "dnstap.hh" -#include "fstrm_logger.hh" - -bool g_syslog; - void remoteLoggerQueueData(RemoteLoggerInterface& r, const std::string& data) { auto ret = r.queueData(data); @@ -95,6 +89,12 @@ void remoteLoggerQueueData(RemoteLoggerInterface& r, const std::string& data) } } +#ifdef HAVE_FSTRM +#include "dnstap.hh" +#include "fstrm_logger.hh" + +bool g_syslog; + static bool isEnabledForQueries(const std::shared_ptr>>& fstreamLoggers) { if (fstreamLoggers == nullptr) {