]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Fix build if dnstap is not enabled 11896/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Fri, 2 Sep 2022 10:27:53 +0000 (12:27 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Fri, 2 Sep 2022 10:27:53 +0000 (12:27 +0200)
pdns/lwres.cc

index 422e349063667db5f7781732e2fed8262dae3b52..650e8682646fbd35c48ea71ea1571187865daaee 100644 (file)
 thread_local TCPOutConnectionManager t_tcp_manager;
 std::shared_ptr<Logr::Logger> 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<std::vector<std::unique_ptr<FrameStreamLogger>>>& fstreamLoggers)
 {
   if (fstreamLoggers == nullptr) {