diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2024-05-05 16:47:28 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-05 16:47:28 +0100 |
| commit | 8ba36ca85cf63d3d83da31fbe52c7779e69a4a74 (patch) | |
| tree | c939f0d041814f30d8e286bdd11a02770a14c4a8 /src/threading.cpp | |
| parent | 17a01a81d812793ee494d46885e6316c7cdd447e (diff) | |
| parent | 1165d65c94db7210d1fdb34fdaa44b68ca80c4c6 (diff) | |
Merge pull request #3535 from Feoramund/freebsd-arm64-minimal
Minimally support compiling Odin on FreeBSD arm64
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 |