Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/core/StarThread_unix.cpp
diff options
context:
space:
mode:
authorCharlotte Koch <dressupgeekout@gmail.com>2024-10-24 15:42:26 -0700
committerCharlotte Koch <dressupgeekout@gmail.com>2024-10-24 15:42:26 -0700
commit20c79e32f8aed496f5c9dad433cacdca18aed4cf (patch)
tree5586c9181440ec160acf08b8668a38833f407bfa /source/core/StarThread_unix.cpp
parent15d116b7eac53f1d0526aa80ab9d59b89661b128 (diff)
Add preliminary support for NetBSD
Diffstat (limited to 'source/core/StarThread_unix.cpp')
-rw-r--r--source/core/StarThread_unix.cpp2
1 files changed, 2 insertions, 0 deletions
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