diff --git a/drivers/auth/mbedtls/mbedtls_common.c b/drivers/auth/mbedtls/mbedtls_common.c index 3799d41..e9aa409 100644 --- a/drivers/auth/mbedtls/mbedtls_common.c +++ b/drivers/auth/mbedtls/mbedtls_common.c @@ -9,6 +9,7 @@ /* mbed TLS headers */ #include #include +#include /* * mbed TLS heap @@ -31,8 +32,10 @@ /* Initialize the mbed TLS heap */ mbedtls_memory_buffer_alloc_init(heap, MBEDTLS_HEAP_SIZE); +#ifdef MBEDTLS_PLATFORM_SNPRINTF_ALT /* Use reduced version of snprintf to save space. */ mbedtls_platform_set_snprintf(tf_snprintf); +#endif ready = 1; }