diff --git a/src/platform/EFR32/CHIPCryptoPALPsaEfr32.cpp b/src/platform/EFR32/CHIPCryptoPALPsaEfr32.cpp index 2439236bd48f1f..13af1ae5a557b6 100644 --- a/src/platform/EFR32/CHIPCryptoPALPsaEfr32.cpp +++ b/src/platform/EFR32/CHIPCryptoPALPsaEfr32.cpp @@ -56,6 +56,10 @@ extern "C" { #include #include +#if defined(MBEDTLS_ERROR_C) +#include +#endif // defined(MBEDTLS_ERROR_C) + #include #include #include