From 828ec905dbbeeb01d93f5cf847aec0508ee07a72 Mon Sep 17 00:00:00 2001 From: Dave Rodgman Date: Sat, 25 Feb 2023 13:32:26 +0000 Subject: [PATCH] Improve explicit_bzero detection Signed-off-by: Dave Rodgman --- library/platform_util.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/platform_util.c b/library/platform_util.c index 8141dd84bb..69d3d7a220 100644 --- a/library/platform_util.c +++ b/library/platform_util.c @@ -44,7 +44,8 @@ #endif // Detect platforms known to support explicit_bzero() -#if defined(__GLIBC__) && (__GLIBC__ >= 2) && (__GLIBC_MINOR__ >= 25) && defined(__unix__) +#if defined(__GLIBC__) && (__GLIBC__ >= 2) && (__GLIBC_MINOR__ >= 25) \ + && !defined(__ARM_EABI__) #define MBEDTLS_PLATFORM_HAS_EXPLICIT_BZERO 1 #endif #if defined(__FreeBSD__) && __FreeBSD_version >= 1100037