From 3d689b4ca4c73d353ba5ae90ae37b1b912a8a8d1 Mon Sep 17 00:00:00 2001 From: Olivier Houchard Date: Wed, 21 Oct 2026 16:55:49 +0200 Subject: [PATCH] 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. --- include/haproxy/thread.h | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.47.3