Commit 316a358b authored by Damjan Jovanovic's avatar Damjan Jovanovic Committed by Alexandre Julliard

server: FreeBSD 14-CURRENT's sched_setaffinity() needs _WITH_CPU_SET_T defined.

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: 's avatarDamjan Jovanovic <damjan.jov@gmail.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 36af18a4
......@@ -33,6 +33,8 @@
#include <time.h>
#include <poll.h>
#ifdef HAVE_SCHED_H
/* FreeBSD needs this for cpu_set_t intead of its cpuset_t */
#define _WITH_CPU_SET_T
#include <sched.h>
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment