From 0e0c3634ecf59ecb88bff2c36947414c9cf9563a Mon Sep 17 00:00:00 2001 From: Sean Parkinson Date: Wed, 31 Jul 2024 09:52:53 +1000 Subject: [PATCH] Don't attempt to include system headers when not required Some builds don't require system headers: no filesystem and single threaded. --- wolfssl/wolfcrypt/wc_port.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wolfssl/wolfcrypt/wc_port.h b/wolfssl/wolfcrypt/wc_port.h index 0cf0eea656..9824d19f3c 100644 --- a/wolfssl/wolfcrypt/wc_port.h +++ b/wolfssl/wolfcrypt/wc_port.h @@ -59,7 +59,9 @@ #endif /* WOLFSSL_LINUXKM */ /* THREADING/MUTEX SECTION */ -#ifdef USE_WINDOWS_API +#if defined(SINGLE_THREADED) && defined(NO_FILESYSTEM) + /* No system headers required for build. */ +#elif defined(USE_WINDOWS_API) #if defined(WOLFSSL_PTHREADS) #include #endif