$OpenBSD: patch-third_party_swiftshader_src_Common_MutexLock_hpp,v 1.3 2019/04/17 11:48:54 robert Exp $

Index: third_party/swiftshader/src/Common/MutexLock.hpp
--- third_party/swiftshader/src/Common/MutexLock.hpp.orig
+++ third_party/swiftshader/src/Common/MutexLock.hpp
@@ -17,7 +17,7 @@
 
 #include "Thread.hpp"
 
-#if defined(__linux__)
+#if defined(__linux__) || defined(__OpenBSD__)
 // 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>
