Added arm64 support for NetBSD

This commit is contained in:
Andreas T Jonsson
2024-06-05 10:18:47 +02:00
parent 2c580aa6fb
commit 58f07698e8
4 changed files with 22 additions and 3 deletions

View File

@@ -494,6 +494,8 @@ gb_internal u32 thread_current_id(void) {
thread_id = find_thread(NULL);
#elif defined(GB_SYSTEM_FREEBSD)
thread_id = pthread_getthreadid_np();
#elif defined(GB_SYSTEM_NETBSD)
thread_id = (u32)_lwp_self();
#else
#error Unsupported architecture for thread_current_id()
#endif