aboutsummaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-third__party_swiftshader_src_Common_MutexLock.hpp
blob: 787e4df3aaa25e5d433977ee2c422aae5d4fb23b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- third_party/swiftshader/src/Common/MutexLock.hpp.orig	2022-02-07 13:39:41 UTC
+++ third_party/swiftshader/src/Common/MutexLock.hpp
@@ -17,7 +17,7 @@
 
 #include "Thread.hpp"
 
-#if defined(__linux__)
+#if defined(__linux__) || defined(__OpenBSD__) || defined(__FreeBSD__)
 // Use a pthread mutex on Linux. Since many processes may use SwiftShader
 // at the same time it's best to just have the scheduler overhead.
 #include <pthread.h>