diff options
| author | Feoramund <161657516+Feoramund@users.noreply.github.com> | 2024-05-05 07:26:45 -0400 |
|---|---|---|
| committer | Feoramund <161657516+Feoramund@users.noreply.github.com> | 2024-05-05 07:26:45 -0400 |
| commit | 1165d65c94db7210d1fdb34fdaa44b68ca80c4c6 (patch) | |
| tree | c939f0d041814f30d8e286bdd11a02770a14c4a8 /src/threading.cpp | |
| parent | 17a01a81d812793ee494d46885e6316c7cdd447e (diff) | |
Minimally support compiling Odin on FreeBSD arm64
This is enough to get Odin itself compiling and the demo running.
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 fbe8997d1..f2e0789f8 100644 --- a/src/threading.cpp +++ b/src/threading.cpp @@ -492,6 +492,8 @@ gb_internal u32 thread_current_id(void) { thread_id = gettid(); #elif defined(GB_SYSTEM_HAIKU) thread_id = find_thread(NULL); +#elif defined(GB_SYSTEM_FREEBSD) + thread_id = pthread_getthreadid_np(); #else #error Unsupported architecture for thread_current_id() #endif |