fix android arm64 build (#231)

This commit is contained in:
David CARLIER 2021-07-20 01:38:44 +01:00 committed by GitHub
parent 230d7a1cb1
commit b0cb74324c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -426,8 +426,8 @@ mod unix_signal_handler {
remove_timeout(); remove_timeout();
#[cfg(all(target_os = "android", target_arch = "aarch64"))] #[cfg(all(target_os = "android", target_arch = "aarch64"))]
let _context = *(((_context as *mut _ as *mut c_void as usize) + 128) as *mut c_void let _context = *(((_context as *mut _ as *mut libc::c_void as usize) + 128)
as *mut ucontext_t); as *mut libc::c_void as *mut ucontext_t);
#[cfg(feature = "std")] #[cfg(feature = "std")]
println!("Crashed with {}", _signal); println!("Crashed with {}", _signal);