Minimally support compiling Odin on FreeBSD arm64

This is enough to get Odin itself compiling and the demo running.
This commit is contained in:
Feoramund
2024-05-05 07:26:45 -04:00
parent 17a01a81d8
commit 1165d65c94
4 changed files with 19 additions and 2 deletions

View File

@@ -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