Revert "std_detect: Do not use libc::getauxval on 32-bit Android"
This reverts commit 85572dc298f5222902c9b200cebf5d045e769a83.
This commit is contained in:
parent
2d2390ea39
commit
8f30830d97
1 changed files with 1 additions and 2 deletions
|
|
@ -139,8 +139,7 @@ fn getauxval(key: usize) -> Result<usize, ()> {
|
|||
target_os = "linux",
|
||||
any(target_env = "gnu", target_env = "musl", target_env = "ohos"),
|
||||
)),
|
||||
// TODO: libc crate currently doesn't provide getauxval on 32-bit Android.
|
||||
not(all(target_os = "android", target_pointer_width = "64")),
|
||||
not(target_os = "android"),
|
||||
))] {
|
||||
let ffi_getauxval: F = unsafe {
|
||||
let ptr = libc::dlsym(libc::RTLD_DEFAULT, c"getauxval".as_ptr());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue