diff --git a/examples/platform/silabs/provision/ProvisionStorageFlash.cpp b/examples/platform/silabs/provision/ProvisionStorageFlash.cpp index 18ccc7c88d..9735071ef7 100644 --- a/examples/platform/silabs/provision/ProvisionStorageFlash.cpp +++ b/examples/platform/silabs/provision/ProvisionStorageFlash.cpp @@ -29,7 +29,7 @@ #include #endif // OTA_ENCRYPTION_ENABLE -#if !SL_MATTER_GN_BUILD +#if !(SL_MATTER_GN_BUILD || defined(SL_PROVISION_GENERATOR)) #include #endif