aboutsummaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-third__party_swiftshader_src_System_SharedLibrary.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'www/chromium/files/patch-third__party_swiftshader_src_System_SharedLibrary.hpp')
-rw-r--r--www/chromium/files/patch-third__party_swiftshader_src_System_SharedLibrary.hpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/www/chromium/files/patch-third__party_swiftshader_src_System_SharedLibrary.hpp b/www/chromium/files/patch-third__party_swiftshader_src_System_SharedLibrary.hpp
new file mode 100644
index 000000000000..c419247cebd0
--- /dev/null
+++ b/www/chromium/files/patch-third__party_swiftshader_src_System_SharedLibrary.hpp
@@ -0,0 +1,11 @@
+--- third_party/swiftshader/src/System/SharedLibrary.hpp.orig 2022-02-07 13:39:41 UTC
++++ third_party/swiftshader/src/System/SharedLibrary.hpp
+@@ -96,7 +96,7 @@ inline void *loadLibrary(const char *path)
+
+ inline void *getLibraryHandle(const char *path)
+ {
+-# ifdef __ANDROID__
++# if defined(__ANDROID__) || defined(__OpenBSD__) || defined(__FreeBSD__)
+ // bionic doesn't support RTLD_NOLOAD before L
+ return dlopen(path, RTLD_NOW | RTLD_LOCAL);
+ # else