From 4d36bc1f46626e64640f3e3f3eecfa196f240dea Mon Sep 17 00:00:00 2001 From: Andy Green Date: Tue, 6 Mar 2018 06:37:56 +0800 Subject: [PATCH] smp: include pthreads with LWS_MAX_SMP gt 1 --- lib/libwebsockets.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/libwebsockets.h b/lib/libwebsockets.h index 026c664c..f3fb4598 100644 --- a/lib/libwebsockets.h +++ b/lib/libwebsockets.h @@ -224,6 +224,8 @@ typedef unsigned long long lws_intptr_t; #if LWS_MAX_SMP > 1 +#include + #define lws_pthread_mutex(name) pthread_mutex_t name; static LWS_INLINE void