ports/www/chromium/files/patch-base_native__library__posix.cc
Robert Nagy 6dc209ad0a www/chromium: update to 102.0.5005.61
Security:	40e2c35e-db99-11ec-b0cf-3065ec8fd3ec
2022-05-24 21:51:52 +02:00

11 lines
663 B
C++

--- base/native_library_posix.cc.orig 2022-05-19 14:06:27 UTC
+++ base/native_library_posix.cc
@@ -33,7 +33,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 BUILDFLAG(IS_ANDROID) || !defined(RTLD_DEEPBIND)
+#if BUILDFLAG(IS_ANDROID) || !defined(RTLD_DEEPBIND) || BUILDFLAG(IS_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.