aboutsummaryrefslogtreecommitdiff
path: root/devel/electron13/files/patch-third__party_swiftshader_src_Common_SharedLibrary.hpp
blob: 3ca4c7b4317df66163a74d53a130d1d9b0b9cdb6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- third_party/swiftshader/src/Common/SharedLibrary.hpp.orig	2021-01-07 00:39:34 UTC
+++ third_party/swiftshader/src/Common/SharedLibrary.hpp
@@ -97,7 +97,7 @@ void *loadLibrary(const std::string &libraryDirectory,
 
 	inline void *getLibraryHandle(const char *path)
 	{
-		#ifdef __ANDROID__
+		#if defined( __ANDROID__) || defined(__FreeBSD__)
 			// bionic doesn't support RTLD_NOLOAD before L
 			return dlopen(path, RTLD_NOW | RTLD_LOCAL);
 		#else