Skip to content

Commit 18f1abd

Browse files
Cristib05cfriedt
authored andcommitted
net: l2: openthread: Fix nat64 API compile warning
This PR includes OpenThread's NAT64 header file when NAT64_TRANSLATOR is enabled. This is done to avoid compile warnings when OT NAT64 API is used. Signed-off-by: Cristian Bulacu <[email protected]>
1 parent 69efca7 commit 18f1abd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

subsys/net/l2/openthread/openthread.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ LOG_MODULE_REGISTER(net_l2_openthread, CONFIG_OPENTHREAD_L2_LOG_LEVEL);
2828

2929
#include "openthread_utils.h"
3030

31+
#if defined(CONFIG_OPENTHREAD_NAT64_TRANSLATOR)
32+
#include <openthread/nat64.h>
33+
#endif /* CONFIG_OPENTHREAD_NAT64_TRANSLATOR */
34+
3135
#if defined(CONFIG_OPENTHREAD_ZEPHYR_BORDER_ROUTER)
3236
#include "openthread_border_router.h"
3337
#endif /* CONFIG_OPENTHREAD_ZEPHYR_BORDER_ROUTER */

0 commit comments

Comments
 (0)