summaryrefslogtreecommitdiff
path: root/games/spring/files/patch-rts_System_Threading_SpringThreading.h
blob: 3444142c45d72ce2c2dcd0c0baeaa6a8530452c6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- rts/System/Threading/SpringThreading.h.orig	2020-12-26 12:45:43 UTC
+++ rts/System/Threading/SpringThreading.h
@@ -13,7 +13,7 @@
 
 #if   defined(_WIN32)
 	#include "System/Platform/Win/CriticalSection.h"
-#elif defined(__APPLE__) || !defined(USE_FUTEX)
+#elif defined(__APPLE__) || defined(__FreeBSD__) || !defined(USE_FUTEX)
 	#include "System/Platform/Mac/Signal.h"
 #elif !defined(__APPLE__) && defined(USE_FUTEX)
 	#include "System/Platform/Linux/Futex.h"
@@ -37,7 +37,7 @@ namespace spring {
 	typedef CriticalSection recursive_mutex;
 	typedef win_signal signal;
 	typedef std::condition_variable_any condition_variable;
-#elif defined(__APPLE__) || !defined(USE_FUTEX)
+#elif defined(__APPLE__) || defined(__FreeBSD__) || !defined(USE_FUTEX)
 	typedef std::mutex mutex;
 	typedef std::recursive_mutex recursive_mutex;
 	typedef mac_signal signal;