Skip to content

Commit dde5a5e

Browse files
committed
Fix compilation with feature = "use-explicitly-provided-auxv".
1 parent 4b999eb commit dde5a5e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/backend/linux_raw/param/init.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ use crate::backend::c;
1010
use crate::ffi::CStr;
1111
use core::ffi::c_void;
1212
use core::ptr::{null_mut, read, NonNull};
13+
#[cfg(feature = "runtime")]
14+
use core::sync::atomic::AtomicBool;
1315
use core::sync::atomic::{AtomicPtr, AtomicUsize, Ordering};
1416
use linux_raw_sys::elf::*;
1517
use linux_raw_sys::general::{
@@ -141,7 +143,7 @@ unsafe fn init_from_auxp(mut auxp: *const Elf_auxv_t) {
141143
AT_SYSINFO_EHDR => SYSINFO_EHDR.store(a_val.cast::<Elf_Ehdr>(), Ordering::Relaxed),
142144

143145
#[cfg(feature = "runtime")]
144-
AT_SECURE => SECURE.store(a_val != 0, Ordering::Relaxed),
146+
AT_SECURE => SECURE.store(a_val as usize != 0, Ordering::Relaxed),
145147
#[cfg(feature = "runtime")]
146148
AT_PHDR => PHDR.store(a_val.cast::<Elf_Phdr>(), Ordering::Relaxed),
147149
#[cfg(feature = "runtime")]

0 commit comments

Comments
 (0)