From: Olivier Houchard Date: Tue, 8 Sep 2026 14:00:18 +0000 (+0200) Subject: BUILD: fd: Make sure to include sched.h X-Git-Tag: v3.5-dev7~52 X-Git-Url: https://git.kaiwu.me/?a=commitdiff_plain;h=559c570b472d0f70ac298149d600af711969ab12;p=haproxy.git BUILD: fd: Make sure to include sched.h Commit 5e9662ddd63a730235deec27489c7e8897fea21d made it so that instead of checking for the existence of CLONE_FILES, we'd define HA_HAVE_UNSHARE if file unsharing is available. To determine that, it checks for the existence of CLONE_FILES, however without including sched.h, it will never be defined, and file unsharing will never be used. Fix that by properly including sched.h. --- diff --git a/include/haproxy/compat.h b/include/haproxy/compat.h index 1f486835d..2d76ffb49 100644 --- a/include/haproxy/compat.h +++ b/include/haproxy/compat.h @@ -25,6 +25,10 @@ #include #include #include +/* for CLONE_FILES, tested by HA_HAVE_UNSHARE below */ +#ifdef _POSIX_PRIORITY_SCHEDULING +#include +#endif /* This is needed on Linux for Netfilter includes */ #include #include