Skip to content

Commit 039853c

Browse files
authored
Merge pull request #7813 from SparkiDev/no_system_headers
Don't attempt to include system headers when not required
2 parents 792f813 + 0e0c363 commit 039853c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

wolfssl/wolfcrypt/wc_port.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@
5959
#endif /* WOLFSSL_LINUXKM */
6060

6161
/* THREADING/MUTEX SECTION */
62-
#ifdef USE_WINDOWS_API
62+
#if defined(SINGLE_THREADED) && defined(NO_FILESYSTEM)
63+
/* No system headers required for build. */
64+
#elif defined(USE_WINDOWS_API)
6365
#if defined(WOLFSSL_PTHREADS)
6466
#include <pthread.h>
6567
#endif

0 commit comments

Comments
 (0)