$OpenBSD: patch-third_party_swiftshader_src_Common_SharedLibrary_hpp,v 1.3 2018/09/12 17:08:22 robert Exp $

Index: third_party/swiftshader/src/Common/SharedLibrary.hpp
--- third_party/swiftshader/src/Common/SharedLibrary.hpp.orig
+++ third_party/swiftshader/src/Common/SharedLibrary.hpp
@@ -115,7 +115,7 @@ void *loadLibrary(const std::string &libraryDirectory,
 
 	inline void *getLibraryHandle(const char *path)
 	{
-		#ifdef __ANDROID__
+		#if defined(__ANDROID__) || defined(__OpenBSD__)
 			// bionic doesn't support RTLD_NOLOAD before L
 			return dlopen(path, RTLD_NOW | RTLD_LOCAL);
 		#else
