From 01561e72b93325ff1de8d59924b7a9977560614e Mon Sep 17 00:00:00 2001 From: Simon Lin Date: Thu, 22 Jul 2021 23:58:35 +0800 Subject: [PATCH] [posix] fix platform UDP init compile error (#6839) This commit fixes the platform UDP compile error when platform Netif is not enabled. --- src/posix/platform/system.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/posix/platform/system.cpp b/src/posix/platform/system.cpp index d7ca3002f..cd5a8897d 100644 --- a/src/posix/platform/system.cpp +++ b/src/posix/platform/system.cpp @@ -140,7 +140,7 @@ otInstance *otSysInit(otPlatformConfig *aPlatformConfig) #if OPENTHREAD_CONFIG_PLATFORM_NETIF_ENABLE platformNetifInit(instance, aPlatformConfig->mInterfaceName); #elif OPENTHREAD_CONFIG_PLATFORM_UDP_ENABLE - ot::Posix::Udp::Init(instance, aPlatformConfig->mInterfaceName); + ot::Posix::Udp::Get().Init(instance, aPlatformConfig->mInterfaceName); #else gNetifName[0] = '\0'; #endif