From 0074c36dd22e4bb09d1ed24de416ab8bb9ce25da Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Sat, 26 Aug 2023 17:22:32 +0200 Subject: [PATCH] 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. --- src/pool.c | 2 ++ 1 file changed, 2 insertions(+) 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