build: Add __FreeBSD__ compilation condition for pthread_setname_np()

This commit is contained in:
armin-25689 authored and Cameron Gutman committed 2025-07-05 18:58:07 -05:00
1 parent 1176ca6409
commit 29f298ec88
1 file changed
+1 -1
+1 -1
View File
@@ -77,7 +77,7 @@ void* ThreadProc(void* context) {
#if defined(LC_WINDOWS)
setThreadNameWin32(ctx->name);
#elif defined(__linux__)
#elif defined(__linux__) || defined(__FreeBSD__)
pthread_setname_np(pthread_self(), ctx->name);
#elif defined(LC_DARWIN)
pthread_setname_np(ctx->name);