Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Nov 2021 02:47:36 +0000
From:      bugzilla-noreply@freebsd.org
To:        multimedia@FreeBSD.org
Subject:   [Bug 259787] sched.h: unknown type name 'cpu_set_t' after 160b4b922b6021848b6b48afc894d16b879b7af2
Message-ID:  <bug-259787-12827-kZjIV6w470@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-259787-12827@https.bugs.freebsd.org/bugzilla/>
References:  <bug-259787-12827@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D259787

--- 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 !=3D -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 !=3D -1)
     {
+        #ifdef __FreeBSD__
+        cpuset_t set;
+        #else
         cpu_set_t set;
+        #endif
         unsigned int i;

         if (!sched_getaffinity( thread->unix_tid, sizeof(set), &set ))

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-259787-12827-kZjIV6w470>