Skip to content

Commit

Permalink
fixup! Build without Broker by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
rsmmr committed Dec 12, 2023
1 parent 3b844ba commit dee7edb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/tables/zeek_agent/zeek_agent.windows.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
#include <winternl.h>
#include <ws2ipdef.h>

#ifdef HAVE_BROKER
#include <broker/version.hh>
#endif

using namespace zeek::agent;
using namespace zeek::agent::platform::windows;
Expand Down Expand Up @@ -109,7 +111,11 @@ std::vector<std::vector<Value>> ZeekAgentWindows::snapshot(const std::vector<tab
Value platform = platform::name();
Value os_name = distribution();
Value agent = options().version_number;
#ifdef HAVE_BROKER
Value broker = broker::version::string();
#else
Value broker = "n/a";
#endif
Value uptime = std::chrono::system_clock::now() - startupTime();
Value tables =
Set(value::Type::Text, transform(database()->tables(), [](const auto* t) { return Value(t->name()); }));
Expand Down

0 comments on commit dee7edb

Please sign in to comment.