From e1e0ca39d2c38fa30e8c5decc36fc7cd54be50ea Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Mon, 13 May 2024 13:21:05 +0200 Subject: [PATCH] dnsdist: Fix a warning when compiling the unit tests without XSK --- pdns/dnsdistdist/test-dnsdist_cc.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pdns/dnsdistdist/test-dnsdist_cc.cc b/pdns/dnsdistdist/test-dnsdist_cc.cc index f9704f9f45..76340228a9 100644 --- a/pdns/dnsdistdist/test-dnsdist_cc.cc +++ b/pdns/dnsdistdist/test-dnsdist_cc.cc @@ -81,6 +81,8 @@ bool DNSDistSNMPAgent::sendBackendStatusChangeTrap([[maybe_unused]] DownstreamSt { return false; } + +#ifdef HAVE_XSK namespace dnsdist::xsk { bool XskProcessQuery(ClientState& clientState, LocalHolders& holders, XskPacket& packet) @@ -88,6 +90,7 @@ bool XskProcessQuery(ClientState& clientState, LocalHolders& holders, XskPacket& return false; } } +#endif /* HAVE_XSK */ bool processResponderPacket(std::shared_ptr& dss, PacketBuffer& response, const std::vector& localRespRuleActions, const std::vector& cacheInsertedRespRuleActions, InternalQueryState&& ids) { -- 2.47.2