fix compiler error for targets that don't define HAVE_PTHREAD

This commit is contained in:
Brett Nicholas
2023-06-26 10:08:24 -06:00
parent 4fd5d154a4
commit 44faddac6c

View File

@ -2103,7 +2103,7 @@ int bench_tls(void* args)
#endif
#endif
if (argClientOnly) {
#if !defined(NO_WOLFSSL_SERVER) && !defined(NO_WOLFSSL_CLIENT)
#if !defined(NO_WOLFSSL_SERVER) && !defined(NO_WOLFSSL_CLIENT) && defined(HAVE_PTHREAD)
/* to avoid to wait server forever */
info->serverListening = 1;
#endif