From 2d5ac04ae1ab7fb1bea1c80e4ed1fbe5c5b13f67 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sat, 17 Jun 2023 23:44:23 +0200 Subject: [PATCH] pthread_setname_np is available with GNU/mingw --- libs/pbd/pthread_utils.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/pbd/pthread_utils.cc b/libs/pbd/pthread_utils.cc index af6af46065..2387bd947f 100644 --- a/libs/pbd/pthread_utils.cc +++ b/libs/pbd/pthread_utils.cc @@ -147,7 +147,7 @@ pthread_set_name (const char* str) /* copy string and delete it when exiting */ thread_name.set (strdup (str)); // leaks -#if !defined PLATFORM_WINDOWS && defined _GNU_SOURCE +#if !defined PTW32_VERSION && defined _GNU_SOURCE /* set public thread name, up to 16 chars */ char ptn[16]; memset (ptn, 0, 16);