Skip to content

Commit

Permalink
settings #ifdef _POSIX_THREADS HAVE_PTHREAD
Browse files Browse the repository at this point in the history
  • Loading branch information
gojimmypi committed Jun 23, 2023
1 parent ba787bf commit 1f2f5bc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions wolfssl/wolfcrypt/settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down

0 comments on commit 1f2f5bc

Please sign in to comment.