[Bug 259787] sched.h: unknown type name 'cpu_set_t' after 160b4b922b6021848b6b48afc894d16b879b7af2
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 13 Nov 2021 02:47:36 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259787
--- Comment #7 from tod.jackson@gmail.com ---
Here's a patch for wine-devel (didn't look at other versions) if anyone is
impatient:
--- server/thread.c.orig 2021-11-05 16:14:05.000000000 -0600
+++ server/thread.c 2021-11-12 18:50:36.571110000 -0700
@@ -571,7 +571,11 @@
#ifdef HAVE_SCHED_SETAFFINITY
if (thread->unix_tid != -1)
{
+ #ifdef __FreeBSD__
+ cpuset_t set;
+ #else
cpu_set_t set;
+ #endif
int i;
affinity_t mask;
@@ -592,7 +596,11 @@
#ifdef HAVE_SCHED_SETAFFINITY
if (thread->unix_tid != -1)
{
+ #ifdef __FreeBSD__
+ cpuset_t set;
+ #else
cpu_set_t set;
+ #endif
unsigned int i;
if (!sched_getaffinity( thread->unix_tid, sizeof(set), &set ))
--
You are receiving this mail because:
You are on the CC list for the bug.