0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-06-06 23:51:18 +00:00
Files
termux-packages/x11-packages/chromium-host-tools/cr-patches/1013-chromium-crypt-fix-dynamic-loaded-libraries.patch
2025-04-14 23:50:29 +08:00

15 lines
535 B
Diff

--- a/components/os_crypt/sync/libsecret_util_linux.cc
+++ b/components/os_crypt/sync/libsecret_util_linux.cc
@@ -102,7 +102,11 @@
if (libsecret_loaded_)
return true;
+#ifdef __TERMUX__
+ static void* handle = dlopen("libsecret-1.so", RTLD_NOW | RTLD_GLOBAL);
+#else
static void* handle = dlopen("libsecret-1.so.0", RTLD_NOW | RTLD_GLOBAL);
+#endif
if (!handle) {
// We wanted to use libsecret, but we couldn't load it. Warn, because
// either the user asked for this, or we autodetected it incorrectly. (Or