mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-04 19:48:03 +00:00
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: Damjan Jovanovic <damjan.jov@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
36af18a4f1
commit
316a358b0f
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue