0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-02-22 22:47:51 +00:00
termux-packages/packages/rust/0005-no-RTLD_DEEPBIND.patch
2024-03-27 11:12:06 +08:00

14 lines
458 B
Diff

--- a/src/tools/rust-analyzer/crates/proc-macro-srv/src/dylib.rs
+++ b/src/tools/rust-analyzer/crates/proc-macro-srv/src/dylib.rs
@@ -69,9 +69,8 @@
use std::os::raw::c_int;
const RTLD_NOW: c_int = 0x00002;
- const RTLD_DEEPBIND: c_int = 0x00008;
- unsafe { UnixLibrary::open(Some(file), RTLD_NOW | RTLD_DEEPBIND).map(|lib| lib.into()) }
+ unsafe { UnixLibrary::open(Some(file), RTLD_NOW).map(|lib| lib.into()) }
}
#[derive(Debug)]