From 7a4023a17f1627436236cde2ac3cc90d2d8eb59d Mon Sep 17 00:00:00 2001 From: Tim Wojtulewicz Date: Fri, 24 Jul 2020 12:55:54 -0700 Subject: [PATCH] Properly forward-declare zeek::plugin::plugin in DebugLogger --- src/DebugLogger.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/DebugLogger.h b/src/DebugLogger.h index 7f63bb712e..9929011278 100644 --- a/src/DebugLogger.h +++ b/src/DebugLogger.h @@ -5,6 +5,8 @@ #ifdef DEBUG +#include "zeek-config.h" + #include #include #include @@ -20,8 +22,9 @@ #define PLUGIN_DBG_LOG(plugin, args...) zeek::detail::debug_logger.Log(plugin, args) +ZEEK_FORWARD_DECLARE_NAMESPACED(Plugin, zeek, plugin); + namespace zeek { -namespace plugin { class Plugin; } // To add a new debugging stream, add a constant here as well as // an entry to DebugLogger::streams in DebugLogger.cc.