[nd6] add CONFIG_BORDER_ROUTING_ENABLE guard check (#10759)

This commit adds `CONFIG_BORDER_ROUTING_ENABLE` guard checks to
`nd6.hpp` and `nd6.cpp` source files, as the definitions in these
files are only used when the `BORDER_ROUTING` feature is enabled.
This commit is contained in:
Abtin Keshavarzian
2024-09-30 09:26:12 -07:00
committed by GitHub
parent 925a951d71
commit d77f4ab4ac
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -33,6 +33,8 @@
#include "nd6.hpp"
#if OPENTHREAD_CONFIG_BORDER_ROUTING_ENABLE
#include "instance/instance.hpp"
namespace ot {
@@ -323,3 +325,5 @@ NeighborAdvertMessage::NeighborAdvertMessage(void)
} // namespace Nd
} // namespace Ip6
} // namespace ot
#endif // OPENTHREAD_CONFIG_BORDER_ROUTING_ENABLE
+4
View File
@@ -38,6 +38,8 @@
#include "openthread-core-config.h"
#if OPENTHREAD_CONFIG_BORDER_ROUTING_ENABLE
#include <stdint.h>
#include <openthread/netdata.h>
@@ -973,4 +975,6 @@ static_assert(sizeof(NeighborAdvertMessage) == 24, "Invalid NeighborAdvertMessag
} // namespace Ip6
} // namespace ot
#endif // OPENTHREAD_CONFIG_BORDER_ROUTING_ENABLE
#endif // ND6_HPP_