diff --git a/src/platform/Zephyr/BLEManagerImpl.cpp b/src/platform/Zephyr/BLEManagerImpl.cpp index 07f30dc0632a6c..d97bee37b5d7ed 100644 --- a/src/platform/Zephyr/BLEManagerImpl.cpp +++ b/src/platform/Zephyr/BLEManagerImpl.cpp @@ -39,8 +39,14 @@ #include #include + #include +#if CHIP_DEVICE_LAYER_TARGET_NRFCONNECT +/* The Nrfconnect platform uses the newer Zephyr version, and rand32.h is deprecated there */ +#include +#else #include +#endif #include #include