Skip to content

Commit

Permalink
Fix build on Android
Browse files Browse the repository at this point in the history
  • Loading branch information
Heap-Hop committed Aug 17, 2024
1 parent 9f743d5 commit 31a01f9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/os/unix/uds_local_socket/tokio/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ impl Stream {
async fn _connect(addr: SocketAddr) -> io::Result<UnixStream> {
#[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 || {
Expand Down

0 comments on commit 31a01f9

Please sign in to comment.