util/u_thread: include pthread_np.h if found
authorJonathan Gray <jsg@jsg.id.au>
Wed, 24 Jun 2020 13:27:52 +0000 (23:27 +1000)
committerMarge Bot <eric+marge@anholt.net>
Mon, 31 Aug 2020 09:14:57 +0000 (09:14 +0000)
commit55765f80b9ce7cce4ec6a1c2bed6476776d9cbed
tree4c359cc9d0de8e9c7fb96bb0e55720db2bb9a5e6
parentc66c5b38e0ad136aa9301fd60aafea736d433c57
util/u_thread: include pthread_np.h if found

Required for pthread_set_name_np() on OpenBSD as there is no
pthread_setaffinity_np() to define PTHREAD_SETAFFINITY_IN_NP_HEADER.

Fixes: dcf9d91a80e ("util: Handle differences in pthread_setname_np")
Signed-off-by: Jonathan Gray <jsg@jsg.id.au>
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5630>
meson.build
src/util/u_thread.h