From bfaa718e9021cf36d2c1b6dcf8f0f9ef519d62dd Mon Sep 17 00:00:00 2001 From: Hanno Becker Date: Mon, 3 Jun 2019 16:31:32 +0100 Subject: [PATCH] Add cfg dep MBEDTLS_MEMORY_DEBUG->MBEDTLS_MEMORY_BUFFER_ALLOC_C --- include/mbedtls/check_config.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/mbedtls/check_config.h b/include/mbedtls/check_config.h index 68dc4740ab..fb3b6e154d 100644 --- a/include/mbedtls/check_config.h +++ b/include/mbedtls/check_config.h @@ -307,6 +307,10 @@ #error "MBEDTLS_MEMORY_BACKTRACE defined, but not all prerequesites" #endif +#if defined(MBEDTLS_MEMORY_DEBUG) && !defined(MBEDTLS_MEMORY_BUFFER_ALLOC_C) +#error "MBEDTLS_MEMORY_DEBUG defined, but not all prerequesites" +#endif + #if defined(MBEDTLS_PADLOCK_C) && !defined(MBEDTLS_HAVE_ASM) #error "MBEDTLS_PADLOCK_C defined, but not all prerequisites" #endif