From 0ec05ec75b95b14e7575516845b34a0a65c87637 Mon Sep 17 00:00:00 2001 From: Martino Facchin Date: Tue, 4 May 2021 11:47:36 +0200 Subject: [PATCH] mbed-os: allow storing certificates in filesystem mbed-os doesn't provide "dirent.h"; replace it with "mbed_retarget.h" in case MBEDTLS_FS_IO is defined Part of https://github.com/ARMmbed/mbed-os/pull/13863. Fixes https://github.com/ARMmbed/mbed-os/pull/13863/files#r601617986 Signed-off-by: Martino Facchin --- library/x509_crt.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/library/x509_crt.c b/library/x509_crt.c index 7aefaa7432..b4fe8863a6 100644 --- a/library/x509_crt.c +++ b/library/x509_crt.c @@ -74,7 +74,11 @@ #if !defined(_WIN32) || defined(EFIX64) || defined(EFI32) #include #include +#if defined(__MBED__) +#include +#else #include +#endif /* __MBED__ */ #endif /* !_WIN32 || EFIX64 || EFI32 */ #endif