Skip to content

Commit

Permalink
Fix android tests
Browse files Browse the repository at this point in the history
Signed-off-by: John Nunley <[email protected]>
  • Loading branch information
notgull committed Dec 7, 2023
1 parent 21a83ad commit b8ee4c2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/async.rs
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,9 @@ fn duplicate_socket_insert() -> io::Result<()> {
#[test]
fn abstract_socket() -> io::Result<()> {
use std::ffi::OsStr;
#[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::net::{SocketAddr, UnixListener, UnixStream};
Expand Down

0 comments on commit b8ee4c2

Please sign in to comment.