Only use pthreads if supported in config.

This commit is contained in:
David Garske
2022-02-25 13:05:04 -08:00
parent e3e1426b91
commit 3fdb6f0a4a

View File

@ -48,7 +48,7 @@
/* benchmark multi-threading - disable for FIPS self test */ /* benchmark multi-threading - disable for FIPS self test */
#elif !defined(SINGLE_THREADED) && !defined(WC_NO_BENCH_THREADING) && \ #elif !defined(SINGLE_THREADED) && !defined(WC_NO_BENCH_THREADING) && \
!defined(HAVE_SELFTEST) && !defined(HAVE_RENESAS_SYNC) defined(HAVE_PTHREAD) && !defined(HAVE_RENESAS_SYNC)
#define WC_ENABLE_BENCH_THREADING #define WC_ENABLE_BENCH_THREADING
#if defined(_POSIX_THREADS) && !defined(__MINGW32__) #if defined(_POSIX_THREADS) && !defined(__MINGW32__)