FreeBSD 14-CURRENT got the non-standard sched_setaffinity() function, but it uses FreeBSD's cpuset_t type instead of Linux's cpu_set_t (also non-standard). This breaks the build. We have to define _WITH_CPU_SET_T before including <sched.h> to get that type named cpu_set_t instead.
Signed-off-by: Damjan Jovanovic damjan.jov@gmail.com --- server/thread.c | 2 ++ 1 file changed, 2 insertions(+)