[PATCH] server: FreeBSD 14-CURRENT's sched_setaffinity() needs _WITH_CPU_SET_T defined
6 Dec
2021
6 Dec
'21
1:52 a.m.
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(a)gmail.com> --- server/thread.c | 2 ++ 1 file changed, 2 insertions(+)
1470
Age (days ago)
1470
Last active (days ago)
0 comments
1 participants
participants (1)
-
Damjan Jovanovic