Skip to content

Commit

Permalink
Compile flag to not include system headers
Browse files Browse the repository at this point in the history
Some builds don't require system headers: crypto only and single
threaded.
WOLFSSL_NO_SYSTEM_HEADERS stops wolfSSL including system headers.
  • Loading branch information
SparkiDev committed Jul 30, 2024
1 parent dbf88e4 commit a449727
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion wolfssl/wolfcrypt/wc_port.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,12 @@
#endif /* WOLFSSL_LINUXKM */

/* THREADING/MUTEX SECTION */
#ifdef USE_WINDOWS_API
#if defined(WOLFSSL_NO_SYSTEM_HEADERS)
#ifndef SINGLE_THREADED
#error "Configure as single threaded."
#endif
/* 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 a449727

Please sign in to comment.