Skip to content

Commit

Permalink
add use cfg_if::cfg_if to a few more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
inglorion committed Jun 30, 2023
1 parent 2b56354 commit d80ea77
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/sys/test_sockopt.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#[cfg(any(target_os = "android", target_os = "linux"))]
use crate::*;
use cfg_if::cfg_if;
use nix::sys::socket::{
getsockopt, setsockopt, socket, sockopt, AddressFamily, SockFlag,
SockProtocol, SockType,
Expand Down
1 change: 1 addition & 0 deletions test/test_sendfile.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#[cfg(any(target_os = "android", target_os = "linux"))]
use crate::require_largefile;
use cfg_if::cfg_if;
use std::io::prelude::*;
#[cfg(any(target_os = "android", target_os = "linux"))]
use std::os::unix::io::{AsRawFd, FromRawFd, OwnedFd};
Expand Down

0 comments on commit d80ea77

Please sign in to comment.