diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-10-25 11:19:41 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-25 11:19:41 +1100 |
commit | 98bc80a32ca674aa04f871d194f1d2a622e2c657 (patch) | |
tree | 2c46182d863d8db2956605a9a31af0b0e2433ec0 /source/core | |
parent | c2b9f5ac078379090f64f9d8840960555c79e22d (diff) | |
parent | 20c79e32f8aed496f5c9dad433cacdca18aed4cf (diff) |
Merge pull request #134 from dressupgeekout/netbsd
Add preliminary support for NetBSD
Diffstat (limited to 'source/core')
-rw-r--r-- | source/core/StarThread_unix.cpp | 2 |
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 |