We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 44fadda commit b02a22bCopy full SHA for b02a22b
1 file changed
examples/benchmark/tls_bench.c
@@ -78,6 +78,10 @@ Or
78
#undef HAVE_PTHREAD
79
#endif
80
81
+/* Conversely, if both server and client are enabled, we must require pthreads */
82
+#if !defined(NO_WOLFSSL_CLIENT) && !defined(NO_WOLFSSL_SERVER) && !defined(HAVE_PTHREAD)
83
+ #error "pthreads must be enabled if building benchmark suite to run both client and server. Please define HAVE_PTHREAD if your platform supports it."
84
+#endif
85
86
#ifdef HAVE_PTHREAD
87
#include <pthread.h>
0 commit comments