Skip to content

Commit

Permalink
need this to atempt to fix darwin (these don't compile on linux?)
Browse files Browse the repository at this point in the history
  • Loading branch information
Marty Leisner authored and Marty Leisner committed Aug 26, 2021
1 parent 501d9b2 commit 49ddccf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/mdns/Discovery_ImplPlatform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ namespace chip {
namespace Mdns {

DiscoveryImplPlatform DiscoveryImplPlatform::sManager;
#if CHIP_CONFIG_MDNS_CACHE_SIZE > 0
MdnsCache<CHIP_CONFIG_MDNS_CACHE_SIZE> DiscoveryImplPlatform::sMdnsCache;
#endif

DiscoveryImplPlatform::DiscoveryImplPlatform() = default;

Expand Down Expand Up @@ -439,7 +441,7 @@ CHIP_ERROR DiscoveryImplPlatform::ResolveNodeId(const PeerId & peerId, Inet::IPA
{
ReturnErrorOnFailure(Init());

Inet::IPaAddress addr;
Inet::IPAddress addr;
uint16_t port;
Inet::InterfaceId iface;

Expand Down
4 changes: 4 additions & 0 deletions src/lib/mdns/Discovery_ImplPlatform.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include <lib/mdns/Resolver.h>
#include <lib/mdns/platform/Mdns.h>
#include <platform/CHIPDeviceConfig.h>
#include <lib/mdns/MdnsCache.h>

// Enable detailed mDNS logging for publish
#undef DETAIL_LOGGING
Expand Down Expand Up @@ -97,6 +98,9 @@ class DiscoveryImplPlatform : public ServiceAdvertiser, public Resolver
ResolverDelegate * mResolverDelegate = nullptr;

static DiscoveryImplPlatform sManager;
#if CHIP_CONFIG_MDNS_CACHE_SIZE > 0
static MdnsCache <CHIP_CONFIG_MDNS_CACHE_SIZE> sIPCache;
#endif
};

} // namespace Mdns
Expand Down

0 comments on commit 49ddccf

Please sign in to comment.