From: Willy Tarreau Date: Sat, 26 Aug 2023 15:22:32 +0000 (+0200) Subject: BUILD: pools: import plock.h to build even without thread support X-Git-Tag: v2.9-dev5~106 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0074c36dd22e4bb09d1ed24de416ab8bb9ce25da;p=thirdparty%2Fhaproxy.git BUILD: pools: import plock.h to build even without thread support In 2.9-dev4, commit 544c2f2d9 ("MINOR: pools: use EBO to wait for unlock during pool_flush()") broke the thread-less build by calling pl_wait_new_long() without explicitly including plock.h which is normally included by thread.h when threads are enabled. --- diff --git a/src/pool.c b/src/pool.c index 59b0944bba..83ebe255cf 100644 --- a/src/pool.c +++ b/src/pool.c @@ -12,6 +12,8 @@ #include +#include + #include #include #include