LibDNS: Export DNS::Messages::Records::SIG for DNS_DEBUG builds

When building with DNS_DEBUG or ENABLE_ALL_THE_DEBUG_MACROS there is a
linking issue with Libraries/LibDNS/Resolver.h:1003 with
undefined reference DNS::Messages::Records::SIG::to_string() const

Add DNS_API on DNS:Messages::Records::SIG definition to allow access
to the class in bin/dns, bin/TestDNSResolver, libexec/RequestServer
This commit is contained in:
Rocco Corsi 2025-09-17 14:36:38 -04:00 committed by Ali Mohammad Pur
parent b8787cb021
commit 73658c9785

View file

@ -537,7 +537,7 @@ struct CDS : public DS {
static constexpr ResourceType type = ResourceType::CDS;
static ErrorOr<CDS> from_raw(ParseContext& raw) { return DS::from_raw(raw); }
};
struct SIG {
struct DNS_API SIG {
ResourceType type_covered;
DNSSEC::Algorithm algorithm;
u8 label_count;