Skip to content

Commit

Permalink
Fix import on Android
Browse files Browse the repository at this point in the history
  • Loading branch information
kotauskas authored Aug 17, 2024
2 parents 9f743d5 + 31a01f9 commit db6c36d
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

1 comment on commit db6c36d

@hsyodyssey
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this fixes my current compiling issue

Please sign in to comment.