diff --git a/ChangeLog.d/error-include-string.txt b/ChangeLog.d/error-include-string.txt new file mode 100644 index 0000000000..0a12c7bec4 --- /dev/null +++ b/ChangeLog.d/error-include-string.txt @@ -0,0 +1,2 @@ +Bugfix + * Fix conditions for including string.h in error.c. Fixes #3866. diff --git a/library/error.c b/library/error.c index cba61e9e7e..0d9f736b9b 100644 --- a/library/error.c +++ b/library/error.c @@ -19,7 +19,7 @@ #include "common.h" -#if defined(MBEDTLS_ERROR_STRERROR_DUMMY) +#if defined(MBEDTLS_ERROR_C) #include #endif diff --git a/scripts/data_files/error.fmt b/scripts/data_files/error.fmt index fd72f8b5ff..1c8a790369 100644 --- a/scripts/data_files/error.fmt +++ b/scripts/data_files/error.fmt @@ -19,7 +19,7 @@ #include "common.h" -#if defined(MBEDTLS_ERROR_STRERROR_DUMMY) +#if defined(MBEDTLS_ERROR_C) #include #endif