aboutsummaryrefslogtreecommitdiff
path: root/src/threading.cpp
diff options
context:
space:
mode:
authorFeoramund <161657516+Feoramund@users.noreply.github.com>2024-05-05 07:26:45 -0400
committerFeoramund <161657516+Feoramund@users.noreply.github.com>2024-05-05 07:26:45 -0400
commit1165d65c94db7210d1fdb34fdaa44b68ca80c4c6 (patch)
treec939f0d041814f30d8e286bdd11a02770a14c4a8 /src/threading.cpp
parent17a01a81d812793ee494d46885e6316c7cdd447e (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.cpp2
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