Use pthread_set_name_np() instead of pthread_setname_np() on FreeBSD.

This commit is contained in:
Gleb Popov 2019-11-10 11:57:17 +04:00 committed by Wim Taymans
parent feb9a4b9e1
commit 33df224254

View file

@ -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;