From: Remi Gacogne Date: Mon, 13 May 2024 11:21:05 +0000 (+0200) Subject: dnsdist: Fix a warning when compiling the unit tests without XSK X-Git-Tag: dnsdist-1.9.5~3^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F14334%2Fhead;p=thirdparty%2Fpdns.git dnsdist: Fix a warning when compiling the unit tests without XSK (cherry picked from commit e1e0ca39d2c38fa30e8c5decc36fc7cd54be50ea) --- diff --git a/pdns/test-dnsdist_cc.cc b/pdns/test-dnsdist_cc.cc index 90a513fc88..44f37a6d07 100644 --- a/pdns/test-dnsdist_cc.cc +++ b/pdns/test-dnsdist_cc.cc @@ -74,6 +74,8 @@ bool DNSDistSNMPAgent::sendBackendStatusChangeTrap(DownstreamState const&) { return false; } + +#ifdef HAVE_XSK namespace dnsdist::xsk { bool XskProcessQuery(ClientState& clientState, LocalHolders& holders, XskPacket& packet) @@ -81,6 +83,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) {