diff options
| author | Andreas T Jonsson <mail@andreasjonsson.se> | 2024-06-05 10:18:47 +0200 |
|---|---|---|
| committer | Andreas T Jonsson <mail@andreasjonsson.se> | 2024-06-05 10:18:47 +0200 |
| commit | 58f07698e849ca7542c53f9687b6c3d4a7f478e9 (patch) | |
| tree | 3ec867313252173650fa3c277294f0c07d954589 /src/threading.cpp | |
| parent | 2c580aa6fbcc58b5d95afd475a6c7418570f1369 (diff) | |
Added arm64 support for NetBSD
Diffstat (limited to 'src/threading.cpp')
| -rw-r--r-- | src/threading.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/threading.cpp b/src/threading.cpp index 48c58e8f4..717dcb874 100644 --- a/src/threading.cpp +++ b/src/threading.cpp @@ -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 |