diff --git a/src/os/unix/uds_local_socket/tokio/stream.rs b/src/os/unix/uds_local_socket/tokio/stream.rs index cfef08f..05cb0ca 100644 --- a/src/os/unix/uds_local_socket/tokio/stream.rs +++ b/src/os/unix/uds_local_socket/tokio/stream.rs @@ -33,6 +33,9 @@ impl Stream { async fn _connect(addr: SocketAddr) -> io::Result { #[cfg(any(target_os = "linux", target_os = "android"))] { + #[cfg(target_os = "android")] + use std::os::android::net::SocketAddrExt; + #[cfg(target_os = "linux")] use std::os::linux::net::SocketAddrExt; if addr.as_abstract_name().is_some() { return tokio::task::spawn_blocking(move || {