Fix the android dlopen call

main
Floris Bruynooghe 2 years ago
parent 50b8d80134
commit c003d2d35d
No known key found for this signature in database
  1. 2
      src/interface/android.rs

@ -13,7 +13,7 @@ pub fn get_libc_ifaddrs() -> Option<(
fn load_symbol<T>(sym: &'static str) -> Option<T> {
const LIB_NAME: &str = "libc.so";
match dlopen::raw::Library::open(LIB_NAME) {
match dlopen2::raw::Library::open(LIB_NAME) {
Ok(lib) => match unsafe { lib.symbol::<T>(sym) } {
Ok(val) => Some(val),
Err(err) => {

Loading…
Cancel
Save