From b155a58ab5ea06ea965609637cf9bec8909b2bf4 Mon Sep 17 00:00:00 2001 From: Valerio Setti Date: Wed, 29 Apr 2026 16:57:55 +0200 Subject: [PATCH 1/2] include mbedtls_platform_requirements.h in mbedtls_config.c This is required because if the user defined configuration file (not the default one provided by mbedtls) includes files from the standard C library then __STDC_WANT_LIB_EXT1__ won't be defined there which cause weird build failures. Signed-off-by: Valerio Setti --- library/mbedtls_config.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/mbedtls_config.c b/library/mbedtls_config.c index 48be660015..e3e6cde3cc 100644 --- a/library/mbedtls_config.c +++ b/library/mbedtls_config.c @@ -6,6 +6,8 @@ * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later */ +#include "mbedtls_platform_requirements.h" + /* We are a special snowflake: we don't include "mbedtls_common.h", * because that would pull and we need to * tune the way it works. */ From cd8b3878c5222470dc60b05a26a72eaa92a15e6a Mon Sep 17 00:00:00 2001 From: Valerio Setti Date: Wed, 29 Apr 2026 17:05:51 +0200 Subject: [PATCH 2/2] changelog: add note about fix of issue 10740 Signed-off-by: Valerio Setti --- ChangeLog.d/issue10740.txt | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 ChangeLog.d/issue10740.txt diff --git a/ChangeLog.d/issue10740.txt b/ChangeLog.d/issue10740.txt new file mode 100644 index 0000000000..eb7a36c063 --- /dev/null +++ b/ChangeLog.d/issue10740.txt @@ -0,0 +1,3 @@ +Bugfix + * Fixed a bug which prevented the inclusion of standard C library header + files from the user provided configuration file. Fixes #10740.