From 66927b326e9d70df17024625582f531c6ea8b110 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Fri, 2 Sep 2022 12:27:53 +0200 Subject: [PATCH] Fix build if dnstap is not enabled --- pdns/lwres.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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) { -- 2.47.2