Skip to content

Commit

Permalink
Don't attempt to include system headers when not required
Browse files Browse the repository at this point in the history
Some builds don't require system headers: no filesystem and single
threaded.
  • Loading branch information
SparkiDev committed Aug 5, 2024
1 parent dbf88e4 commit 2aedfc9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion wolfssl/wolfcrypt/wc_port.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@
#endif /* WOLFSSL_LINUXKM */

/* THREADING/MUTEX SECTION */
#ifdef USE_WINDOWS_API
#if defined(SINGLE_THREADED) && define(NO_FILESYSTEM)
/* No system headers required for build. */
#elif defined(USE_WINDOWS_API)
#if defined(WOLFSSL_PTHREADS)
#include <pthread.h>
#endif
Expand Down

0 comments on commit 2aedfc9

Please sign in to comment.