From c003d2d35d0360f8c1ce5faf1c4d032beee4931b Mon Sep 17 00:00:00 2001 From: Floris Bruynooghe Date: Thu, 23 Mar 2023 15:27:42 +0100 Subject: [PATCH] Fix the android dlopen call --- src/interface/android.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interface/android.rs b/src/interface/android.rs index 4012f84..3fad9df 100644 --- a/src/interface/android.rs +++ b/src/interface/android.rs @@ -13,7 +13,7 @@ pub fn get_libc_ifaddrs() -> Option<( fn load_symbol(sym: &'static str) -> Option { 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::(sym) } { Ok(val) => Some(val), Err(err) => {