summaryrefslogtreecommitdiff
path: root/devel/electron13/files/patch-base_native__library__posix.cc
diff options
context:
space:
mode:
Diffstat (limited to 'devel/electron13/files/patch-base_native__library__posix.cc')
-rw-r--r--devel/electron13/files/patch-base_native__library__posix.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/devel/electron13/files/patch-base_native__library__posix.cc b/devel/electron13/files/patch-base_native__library__posix.cc
new file mode 100644
index 000000000000..00088d5f79e3
--- /dev/null
+++ b/devel/electron13/files/patch-base_native__library__posix.cc
@@ -0,0 +1,11 @@
+--- base/native_library_posix.cc.orig 2021-07-15 19:13:29 UTC
++++ base/native_library_posix.cc
+@@ -31,7 +31,7 @@ NativeLibrary LoadNativeLibraryWithOptions(const FileP
+ // http://crbug.com/17943, http://crbug.com/17557, http://crbug.com/36892,
+ // and http://crbug.com/40794.
+ int flags = RTLD_LAZY;
+-#if defined(OS_ANDROID) || !defined(RTLD_DEEPBIND)
++#if defined(OS_ANDROID) || !defined(RTLD_DEEPBIND) || defined(OS_BSD)
+ // Certain platforms don't define RTLD_DEEPBIND. Android dlopen() requires
+ // further investigation, as it might vary across versions. Crash here to
+ // warn developers that they're trying to rely on uncertain behavior.