From 20c79e32f8aed496f5c9dad433cacdca18aed4cf Mon Sep 17 00:00:00 2001 From: Charlotte Koch Date: Thu, 24 Oct 2024 15:42:26 -0700 Subject: Add preliminary support for NetBSD --- source/core/StarThread_unix.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/core/StarThread_unix.cpp') diff --git a/source/core/StarThread_unix.cpp b/source/core/StarThread_unix.cpp index 7385ae2..fe82ea3 100644 --- a/source/core/StarThread_unix.cpp +++ b/source/core/StarThread_unix.cpp @@ -78,6 +78,8 @@ struct ThreadImpl { #ifdef STAR_SYSTEM_FREEBSD pthread_set_name_np(pthread, tname); +#elif defined(STAR_SYSTEM_NETBSD) + pthread_setname_np(pthread, "%s", tname); #elif not defined STAR_SYSTEM_MACOS pthread_setname_np(pthread, tname); #endif -- cgit v1.2.3