Improve explicit_bzero detection

Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
Dave Rodgman 2023-02-25 13:32:26 +00:00
parent f0a0e43053
commit 828ec905db

View File

@ -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