From 46db2246405bb8aaf3cf9d089a207c37ddb61c76 Mon Sep 17 00:00:00 2001 From: PAS <pasrc@proton.me> Date: Wed, 26 Mar 2025 09:46:42 -0400 Subject: [PATCH 1/2] Fix i_threads.c compiling on macOS --- src/i_threads.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/i_threads.c b/src/i_threads.c index 5ef28bd117..959fc857f6 100644 --- a/src/i_threads.c +++ b/src/i_threads.c @@ -313,6 +313,8 @@ void I_wake_all_cond(I_cond *anchor) WakeAllConditionVariable(*anchor); } #else +#include "i_threads.h" + void I_spawn_thread(const char *name, I_thread_fn entry, void *userdata) { (void)name; -- GitLab From ea568ae76284c5a2757cac5ab392406efd8c0122 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustaf=20Alh=C3=A4ll?= <gustaf@hanicef.me> Date: Wed, 26 Mar 2025 17:04:47 +0100 Subject: [PATCH 2/2] Adjust ifdefs to allow Mac OS to compile with threading --- src/i_threads.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/i_threads.c b/src/i_threads.c index 959fc857f6..d56a7d3a4a 100644 --- a/src/i_threads.c +++ b/src/i_threads.c @@ -9,7 +9,7 @@ /// \file i_threads.c /// \brief Multithreading abstraction -#if defined (__unix__) || (!defined(__APPLE__) && defined (UNIXCOMMON)) +#if defined (__unix__) || defined(__APPLE__) #include <pthread.h> -- GitLab