From 8f45313672f98dab5a5a9ba3683c80dec4ff8c11 Mon Sep 17 00:00:00 2001 From: Arne Welzel Date: Wed, 10 May 2023 15:53:04 +0200 Subject: [PATCH] Fixup ifdef check in Plugin.h --- src/plugin/Plugin.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/plugin/Plugin.h b/src/plugin/Plugin.h index 5a4656c87c..d4f34f28ff 100644 --- a/src/plugin/Plugin.h +++ b/src/plugin/Plugin.h @@ -13,8 +13,10 @@ // Avoid ccache busting of Plugin.h for internal plugins by // only including zeek/zeek-version.h if we're building an -// external plugin. -#if defined(ZEEK_PLUGIN_INTERNAL_BUILD) && ! ZEEK_PLUGIN_INTERNAL_BUILD +// external plugin. The define gets set in the CMakeLists.txt file +// for the Zeek::Internal target, which only exists when +// building Zeek itself. +#ifndef ZEEK_PLUGIN_SKIP_VERSION_CHECK #include "zeek/zeek-version.h" // Remove the BRO define in v6.1. #define BRO_PLUGIN_BRO_VERSION ZEEK_VERSION_FUNCTION