diff --git a/drivers/auth/mbedtls/mbedtls_common.c b/drivers/auth/mbedtls/mbedtls_common.c index 336e44be6f4cce8ed47f25904a1e7288021ceb6e..a7e5b97e1586330594000fc430cebb6f3742f11c 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 @@ void mbedtls_init(void) /* 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; }