From b5cc12c92c09bcc10ca53b15ce6fbe5b2b70135a Mon Sep 17 00:00:00 2001 From: Moandor Date: Tue, 22 Sep 2020 14:06:43 +0800 Subject: [PATCH] [meshcop] include logging.hpp for helper function 'LogError()' (#5562) LogError() uses otLogWarnMeshCoP(), which was included by thread/thread_netif.hpp -> meshcop/joiner.hpp -> common/logging.hpp. thread_netif.hpp includes joiner.hpp only if OT_JOINER=ON, so the build would fail if OT_JOINER=OFF. This commit fixes the above. --- src/core/meshcop/meshcop.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/meshcop/meshcop.cpp b/src/core/meshcop/meshcop.cpp index d5fc1b801..fd4c0c7de 100644 --- a/src/core/meshcop/meshcop.cpp +++ b/src/core/meshcop/meshcop.cpp @@ -36,6 +36,7 @@ #include "common/crc16.hpp" #include "common/debug.hpp" #include "common/locator-getters.hpp" +#include "common/logging.hpp" #include "crypto/pbkdf2_cmac.h" #include "crypto/sha256.hpp" #include "mac/mac_types.hpp"