aboutsummaryrefslogtreecommitdiff
path: root/multimedia/pipewire/files/patch-src_pipewire_thread-loop.c
diff options
context:
space:
mode:
authorGleb Popov <arrowd@FreeBSD.org>2021-07-01 13:02:33 +0000
committerGleb Popov <arrowd@FreeBSD.org>2021-07-01 13:03:22 +0000
commitea3170c51fd458d6f3bc90bfea7f194ec9e22cca (patch)
treeebef63e46408cca4059579253787e853deca5501 /multimedia/pipewire/files/patch-src_pipewire_thread-loop.c
parent85aaea5e86f543ca2718fec63edd3b2ae2d915c1 (diff)
downloadports-ea3170c51fd458d6f3bc90bfea7f194ec9e22cca.tar.gz
ports-ea3170c51fd458d6f3bc90bfea7f194ec9e22cca.zip
multimedia/pipewire: Update to 0.3.31
Reported by: portscout!
Diffstat (limited to 'multimedia/pipewire/files/patch-src_pipewire_thread-loop.c')
-rw-r--r--multimedia/pipewire/files/patch-src_pipewire_thread-loop.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/multimedia/pipewire/files/patch-src_pipewire_thread-loop.c b/multimedia/pipewire/files/patch-src_pipewire_thread-loop.c
new file mode 100644
index 000000000000..7a18834d6d55
--- /dev/null
+++ b/multimedia/pipewire/files/patch-src_pipewire_thread-loop.c
@@ -0,0 +1,19 @@
+--- src/pipewire/thread-loop.c.orig 2021-06-28 13:32:38 UTC
++++ src/pipewire/thread-loop.c
+@@ -37,8 +37,14 @@
+ #define pw_thread_loop_events_destroy(o) pw_thread_loop_events_emit(o, destroy, 0)
+
+ #ifdef __FreeBSD__
+-#include <pthread_np.h>
+-#define pthread_setname_np pthread_set_name_np
++#include <sys/param.h>
++#if __FreeBSD_version < 1202000
++int pthread_setname_np(pthread_t thread, const char *name)
++{
++ pthread_set_name_np(thread, name);
++ return 0;
++}
++#endif
+ #endif
+
+ /** \cond */