diff options
author | Gleb Popov <6yearold@gmail.com> | 2019-11-10 11:57:17 +0400 |
---|---|---|
committer | Wim Taymans <wtaymans@redhat.com> | 2019-11-19 13:41:40 +0100 |
commit | 33df224254d917cab1e1875ebe511b4876720d64 (patch) | |
tree | a5e910e5014f12d454d1d0a14beaa70fc4548e9d | |
parent | feb9a4b9e19b56a2fb893d5b4cce3005ad5730ba (diff) |
Use pthread_set_name_np() instead of pthread_setname_np() on FreeBSD.
-rw-r--r-- | src/pipewire/thread-loop.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pipewire/thread-loop.c b/src/pipewire/thread-loop.c index ede95efa..25a23c4d 100644 --- a/src/pipewire/thread-loop.c +++ b/src/pipewire/thread-loop.c @@ -36,6 +36,10 @@ #define pw_thread_loop_events_emit(o,m,v,...) spa_hook_list_call(&o->listener_list, struct pw_thread_loop_events, m, v, ##__VA_ARGS__) #define pw_thread_loop_events_destroy(o) pw_thread_loop_events_emit(o, destroy, 0) +#ifdef __FreeBSD__ +#define pthread_setname_np pthread_set_name_np +#endif + /** \cond */ struct pw_thread_loop { struct pw_loop *loop; |