Skip to content

Commit 0e0c363

Browse files
SparkiDevdgarske
authored andcommitted
Don't attempt to include system headers when not required
Some builds don't require system headers: no filesystem and single threaded.
1 parent ab2256c commit 0e0c363

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)