Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Nov 2021 02:00:17 +0000
From:      bugzilla-noreply@freebsd.org
To:        multimedia@FreeBSD.org
Subject:   [Bug 259787] multimedia/ffmpeg: Fails to build on 14: libavutil/cpu.c:284:5: error: unknown type name 'cpu_set_t';
Message-ID:  <bug-259787-12827-Em1LLDvODm@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 #3 from tod.jackson@gmail.com ---
Ah, thanks. I went ahead and subscribed. In the meantime I just patched it
since I didn't have much luck messing with the headers on my own.

--- libavutil/cpu.c.orig        2021-10-24 14:47:11.000000000 -0600
+++ libavutil/cpu.c             2021-11-11 18:50:52.941062000 -0700
@@ -281,7 +281,11 @@
     SYSTEM_INFO sysinfo;
 #endif
 #if HAVE_SCHED_GETAFFINITY && defined(CPU_COUNT)
+    #ifdef __FreeBSD__
+    cpuset_t cpuset;
+    #else
     cpu_set_t cpuset;
+    #endif

     CPU_ZERO(&cpuset);

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



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