Skip to content

Commit d8785a3

Browse files
taiki-eAmanieu
authored andcommitted
Revert "std_detect: Do not use libc::getauxval on 32-bit Android"
This reverts commit 85572dc.
1 parent ff4b7e1 commit d8785a3

File tree

1 file changed

+1
-2
lines changed
  • crates/std_detect/src/detect/os/linux

1 file changed

+1
-2
lines changed

crates/std_detect/src/detect/os/linux/auxvec.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,7 @@ fn getauxval(key: usize) -> Result<usize, ()> {
139139
target_os = "linux",
140140
any(target_env = "gnu", target_env = "musl", target_env = "ohos"),
141141
)),
142-
// TODO: libc crate currently doesn't provide getauxval on 32-bit Android.
143-
not(all(target_os = "android", target_pointer_width = "64")),
142+
not(target_os = "android"),
144143
))] {
145144
let ffi_getauxval: F = unsafe {
146145
let ptr = libc::dlsym(libc::RTLD_DEFAULT, c"getauxval".as_ptr());

0 commit comments

Comments
 (0)