Skip to content

Commit

Permalink
Fix multiple display_trace definitions on android build (#4700)
Browse files Browse the repository at this point in the history
  • Loading branch information
dguenther authored Feb 7, 2024
1 parent f4abdd6 commit 5de79eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ironfish-rust/src/signal_catcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ unsafe fn display_trace() {

/// # Safety
/// This is unsafe, it calls libc functions
#[cfg(all(unix, not(target_env = "musl")))]
#[cfg(all(unix, not(target_env = "musl"), not(target_os = "android")))]
unsafe fn display_trace() {
const MAX_FRAMES: usize = 256;
static mut STACK_TRACE: [*mut libc::c_void; MAX_FRAMES] = [std::ptr::null_mut(); MAX_FRAMES];
Expand Down

0 comments on commit 5de79eb

Please sign in to comment.