Skip to content

Commit

Permalink
Fix import on Android
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomasdezeeuw committed Jun 9, 2024
1 parent 3c64ad0 commit 9c9988e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/sys/unix/uds/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#[cfg(any(target_os = "android", target_os = "linux"))]
#[cfg(target_os = "android")]
use std::os::android::net::SocketAddrExt;
#[cfg(target_os = "linux")]
use std::os::linux::net::SocketAddrExt;
use std::os::unix::ffi::OsStrExt;
use std::os::unix::io::FromRawFd;
Expand Down
2 changes: 1 addition & 1 deletion tests/unix_listener.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ fn unix_listener_deregister() {
}

#[test]
#[cfg(target_os = "linux")]
#[cfg(any(target_os = "android", target_os = "linux"))]
fn unix_listener_abstract_namespace() {
use rand::Rng;
use std::os::linux::net::SocketAddrExt;
Expand Down

0 comments on commit 9c9988e

Please sign in to comment.