Skip to content

Commit 58cd780

Browse files
committed
fix
1 parent ad2837c commit 58cd780

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/test_sendfile.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
use std::io::prelude::*;
2-
use std::os::unix::io::{OwnedFd, FromRawFd};
2+
#[cfg(any(target_os = "android", target_os = "linux"))]
3+
use std::os::unix::io::{FromRawFd, OwnedFd};
34

45
use libc::off_t;
56
use nix::sys::sendfile::*;

0 commit comments

Comments
 (0)