Skip to content

Commit d80ea77

Browse files
committed
add use cfg_if::cfg_if to a few more tests
1 parent 2b56354 commit d80ea77

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

test/sys/test_sockopt.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#[cfg(any(target_os = "android", target_os = "linux"))]
22
use crate::*;
3+
use cfg_if::cfg_if;
34
use nix::sys::socket::{
45
getsockopt, setsockopt, socket, sockopt, AddressFamily, SockFlag,
56
SockProtocol, SockType,

test/test_sendfile.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#[cfg(any(target_os = "android", target_os = "linux"))]
22
use crate::require_largefile;
3+
use cfg_if::cfg_if;
34
use std::io::prelude::*;
45
#[cfg(any(target_os = "android", target_os = "linux"))]
56
use std::os::unix::io::{AsRawFd, FromRawFd, OwnedFd};

0 commit comments

Comments
 (0)