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: rec-5.1.0-beta1~44^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F14162%2Fhead;p=thirdparty%2Fpdns.git dnsdist: Fix a warning when compiling the unit tests without XSK --- 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) {