That function exists on Mac, but it only takes a single argument, the thread's new name. That's OK for our purposes, since we were calling it on pthread_self anyhow.
Signed-off-by: Chip Davis cdavis@codeweavers.com --- libs/vkd3d/command.c | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/libs/vkd3d/command.c b/libs/vkd3d/command.c index 4db9967..353f42c 100644 --- a/libs/vkd3d/command.c +++ b/libs/vkd3d/command.c @@ -200,7 +200,11 @@ static void *vkd3d_fence_worker_main(void *arg) int rc;
#ifdef HAVE_PTHREAD_SETNAME_NP +#ifdef __APPLE__ + pthread_setname_np("vkd3d_worker"); +#else pthread_setname_np(pthread_self(), "vkd3d_worker"); +#endif #endif
for (;;)