From 9ab50c094dabbb77e8f784e58a7840c5a1d66a83 Mon Sep 17 00:00:00 2001 From: Simon Lin Date: Wed, 25 Nov 2020 16:34:11 +0800 Subject: [PATCH] [posix] fix macro typo (#5860) --- src/posix/platform/system.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/posix/platform/system.cpp b/src/posix/platform/system.cpp index 86063ff6a..fcd74653c 100644 --- a/src/posix/platform/system.cpp +++ b/src/posix/platform/system.cpp @@ -46,7 +46,7 @@ #include "common/code_utils.hpp" -#if OPENTHREAD_CONFIG_PLATFORM_NETIF_ENABLE || OPENTHREAD_CONFIG_PLATFORM_NETIF_ENABLE +#if OPENTHREAD_CONFIG_PLATFORM_NETIF_ENABLE || OPENTHREAD_CONFIG_BACKBONE_ROUTER_ENABLE static void processStateChange(otChangedFlags aFlags, void *aContext) { otInstance *instance = static_cast(aContext); @@ -100,7 +100,7 @@ otInstance *otSysInit(otPlatformConfig *aPlatformConfig) platformUdpInit(aPlatformConfig->mInterfaceName); #endif -#if OPENTHREAD_CONFIG_PLATFORM_NETIF_ENABLE || OPENTHREAD_CONFIG_PLATFORM_NETIF_ENABLE +#if OPENTHREAD_CONFIG_PLATFORM_NETIF_ENABLE || OPENTHREAD_CONFIG_BACKBONE_ROUTER_ENABLE SuccessOrDie(otSetStateChangedCallback(instance, processStateChange, instance)); #endif