From: Olivier Houchard Date: Wed, 21 Oct 2026 14:55:49 +0000 (+0200) Subject: BUILD: thread: fix builds without thread support X-Git-Tag: v3.5-dev10~90 X-Git-Url: https://git.kaiwu.me/?a=commitdiff_plain;h=3d689b4ca4c73d353ba5ae90ae37b1b912a8a8d1;p=haproxy.git BUILD: thread: fix builds without thread support Commit 4312f13a2 ("OPTIM: fd: Make each thread group's FD table NUMA-local") added an unconditional call to thread_bind_to_cpu_map() from init_pollers(), but the helper is only defined with USE_THREAD. Building with TARGET=generic thus fails with an implicit declaration and an undefined reference. Add a no-op stub alongside the other non-threaded helpers. --- diff --git a/include/haproxy/thread.h b/include/haproxy/thread.h index f3f49daf0..c322bef4a 100644 --- a/include/haproxy/thread.h +++ b/include/haproxy/thread.h @@ -167,6 +167,10 @@ static inline void set_thread_cpu_affinity() { } +static inline void thread_bind_to_cpu_map(uint tgrp, uint ltid) +{ +} + static inline unsigned long long ha_get_pthread_id(unsigned int thr) { return 0;