Damjan Jovanovic : server: FreeBSD 14-CURRENT's sched_setaffinity() needs _WITH_CPU_SET_T defined.
Alexandre Julliard
julliard at winehq.org
Tue Dec 7 15:58:45 CST 2021
Module: wine
Branch: master
Commit: 316a358b0f718d4c81d331993ebc22543c029bf1
URL: https://source.winehq.org/git/wine.git/?a=commit;h=316a358b0f718d4c81d331993ebc22543c029bf1
Author: Damjan Jovanovic <damjan.jov at gmail.com>
Date: Mon Dec 6 03:52:13 2021 +0200
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 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
server/thread.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/server/thread.c b/server/thread.c
index e9240a05659..296f7a5d265 100644
--- a/server/thread.c
+++ b/server/thread.c
@@ -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
More information about the wine-cvs
mailing list