From: Willy Tarreau Date: Wed, 23 May 2018 17:54:43 +0000 (+0200) Subject: BUG/BUILD: threads: unbreak build without threads X-Git-Tag: v1.9-dev1~247 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0cd82e883ef034508ebeef04fd25ffc946e80cfc;p=thirdparty%2Fhaproxy.git BUG/BUILD: threads: unbreak build without threads A few users reported that building without threads was accidently broken after commit 6b96f72 ("BUG/MEDIUM: pollers: Use a global list for fd shared between threads.") due to all_threads_mask not being defined. It's OK to set it to zero as other code parts do when threads are enabled but only one thread is used. This needs to be backported to 1.8. --- diff --git a/include/common/hathreads.h b/include/common/hathreads.h index e27ecc63f6..c25f691023 100644 --- a/include/common/hathreads.h +++ b/include/common/hathreads.h @@ -31,6 +31,7 @@ extern THREAD_LOCAL unsigned long tid_bit; /* The bit corresponding to the threa #ifndef USE_THREAD #define MAX_THREADS 1 +#define all_threads_mask 0UL #define __decl_hathreads(decl)