diff --git a/examples/platform/linux/AppMain.cpp b/examples/platform/linux/AppMain.cpp index c5968cb66a81e1..f1c7cc040c63cd 100644 --- a/examples/platform/linux/AppMain.cpp +++ b/examples/platform/linux/AppMain.cpp @@ -25,12 +25,15 @@ #include #include #include -#include #include #include #include #include +#if defined(CHIP_ENABLE_SHELL) +#include // nogncheck +#endif + #if defined(PW_RPC_ENABLED) #include #endif @@ -41,7 +44,10 @@ using namespace chip; using namespace chip::Inet; using namespace chip::Transport; using namespace chip::DeviceLayer; + +#if defined(CHIP_ENABLE_SHELL) using chip::Shell::Engine; +#endif namespace { void EventHandler(const chip::DeviceLayer::ChipDeviceEvent * event, intptr_t arg)