aboutsummaryrefslogtreecommitdiff
path: root/multimedia/pipewire/files
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2021-12-12 22:33:42 +0000
committerCy Schubert <cy@FreeBSD.org>2021-12-13 14:37:29 +0000
commit847d0ca93026b53f79d728dae616b8f7a2676a77 (patch)
tree4a1bb5570289c6292d2084ab27a6d7fe53268717 /multimedia/pipewire/files
parent3d9f5a9b9c29dd73ae8accbac927ed9bb96cd858 (diff)
downloadports-847d0ca93026b53f79d728dae616b8f7a2676a77.tar.gz
ports-847d0ca93026b53f79d728dae616b8f7a2676a77.zip
multimedia/pipewire: Fix build under 14-CURRENT
As of 77b2c2f81451db8119e4ea6398fe76813db790de FreeBSD 14-CURRENT includes sched_getcpu(). This conflicts with the static function included in the port. Check for it. MFH: 2021Q4
Diffstat (limited to 'multimedia/pipewire/files')
-rw-r--r--multimedia/pipewire/files/patch-spa_tests_stress-ringbuffer.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/multimedia/pipewire/files/patch-spa_tests_stress-ringbuffer.c b/multimedia/pipewire/files/patch-spa_tests_stress-ringbuffer.c
new file mode 100644
index 000000000000..fd1519662a0e
--- /dev/null
+++ b/multimedia/pipewire/files/patch-spa_tests_stress-ringbuffer.c
@@ -0,0 +1,13 @@
+--- spa/tests/stress-ringbuffer.c.orig 2021-11-11 04:21:29.000000000 -0800
++++ spa/tests/stress-ringbuffer.c 2021-12-12 12:11:15.939268000 -0800
+@@ -12,7 +12,10 @@
+ #define MAX_VALUE 0x10000
+
+ #ifdef __FreeBSD__
++#include <sys/param.h>
++#if __FreeBSD_version < 1400043
+ static int sched_getcpu(void) { return -1; };
++#endif
+ #endif
+
+ static struct spa_ringbuffer rb;