diff --git a/wolfssl/wolfcrypt/settings.h b/wolfssl/wolfcrypt/settings.h index 0234a377fc..aaf4ab489e 100644 --- a/wolfssl/wolfcrypt/settings.h +++ b/wolfssl/wolfcrypt/settings.h @@ -52,6 +52,12 @@ extern "C" { #endif +/* pick up compiler def; may need to turn on HAVE_PTHREAD for some configs */ +#ifdef _POSIX_THREADS + #undef HAVE_PTHREAD + #define HAVE_PTHREAD +#endif + /* This flag allows wolfSSL to include options.h instead of having client * projects do it themselves. This should *NEVER* be defined when building * wolfSSL as it can cause hard to debug problems. */