mirror of
https://github.com/termux/termux-packages.git
synced 2025-08-16 14:45:42 +00:00
Co-authored-by: Chongyun Lee <45286352+licy183@users.noreply.github.com> Co-authored-by: Jia Yuan Lo <jylo06g@gmail.com>
12 lines
315 B
Diff
12 lines
315 B
Diff
--- a/src/libunwind.rs
|
|
+++ b/src/libunwind.rs
|
|
@@ -40,7 +40,7 @@
|
|
addr as usize - (_dyld_get_image_vmaddr_slide(0) + (&*cmd).vmaddr as usize)
|
|
}
|
|
|
|
-#[cfg(target_os = "linux")]
|
|
+#[cfg(any(target_os = "linux", target_os = "android"))]
|
|
unsafe fn dyn_slide(addr: u64) -> u64 {
|
|
use std::ffi::{c_int, c_void};
|
|
|