BUILD: cpuset: fix build issue on macos introduced by previous change
authorDavid CARLIER <devnexen@gmail.com>
Sat, 8 Jan 2022 09:59:38 +0000 (09:59 +0000)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 11 Jan 2022 16:55:16 +0000 (17:55 +0100)
commit0081cb4570997ef8ce5f054769f2587d4ad96bda
treed36038962459229c9445f1bbb857f3194bf62da7
parent473641f801ec9a7136ad60676d36bc040bb8109b
BUILD: cpuset: fix build issue on macos introduced by previous change

The build on macos was broken by recent commit df91cbd58 ("MINOR: cpuset:
switch to sched_setaffinity for FreeBSD 14 and above."), let's move the
variable declaration inside the ifdef.

(cherry picked from commit bb10dad5a8321ecc437ef637385ee3a0e7c09747)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/haproxy.c