mirror of
https://github.com/espressif/openthread.git
synced 2026-08-25 11:49:51 +00:00
[netdata] allow Publisher to be build with service only (#7132)
This commit adds missing `#if` check in `network_data_publisher.cpp` to ensure it can be built when `CONFIG_BORDER_ROUTER_ENABLE` is disabled (i.e., with `CONFIG_TMF_NETDATA_SERVICE_ENABLE` only).
This commit is contained in:
@@ -836,6 +836,8 @@ Publisher::DnsSrpServiceEntry::Info::Info(Type aType, uint16_t aPortOrSeqNumber,
|
||||
|
||||
#endif // OPENTHREAD_CONFIG_TMF_NETDATA_SERVICE_ENABLE
|
||||
|
||||
#if OPENTHREAD_CONFIG_BORDER_ROUTER_ENABLE
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
// Publisher::PrefixEntry
|
||||
|
||||
@@ -1089,6 +1091,8 @@ exit:
|
||||
return;
|
||||
}
|
||||
|
||||
#endif // OPENTHREAD_CONFIG_BORDER_ROUTER_ENABLE
|
||||
|
||||
} // namespace NetworkData
|
||||
} // namespace ot
|
||||
|
||||
|
||||
Reference in New Issue
Block a user