summaryrefslogtreecommitdiff
path: root/src/unistd.rs
diff options
context:
space:
mode:
authorAlan Somers <asomers@gmail.com>2020-05-31 16:47:13 -0600
committerAlan Somers <asomers@gmail.com>2020-05-31 19:07:15 -0600
commita777389c13ae0d64eb3ec28f29ba77d3eaec565a (patch)
tree4d06a74bda3513080f4713e3a11f8df8b7d95b19 /src/unistd.rs
parentfb76c213edcb0ef8a403ddc03d27d6975afe1a10 (diff)
downloadnix-a777389c13ae0d64eb3ec28f29ba77d3eaec565a.zip
fixup to "Convert the crate to edition 2018"
Diffstat (limited to 'src/unistd.rs')
-rw-r--r--src/unistd.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/unistd.rs b/src/unistd.rs
index 96357349..8ff71e05 100644
--- a/src/unistd.rs
+++ b/src/unistd.rs
@@ -1,5 +1,6 @@
//! Safe wrappers around functions found in libc "unistd.h" header
+#[cfg(not(target_os = "redox"))]
use cfg_if::cfg_if;
use crate::errno::{self, Errno};
use crate::{Error, Result, NixPath};
@@ -1110,7 +1111,7 @@ pub fn pipe2(flags: OFlag) -> Result<(RawFd, RawFd)> {
#[cfg(any(target_os = "ios", target_os = "macos"))]
fn pipe2_setflags(fd1: RawFd, fd2: RawFd, flags: OFlag) -> Result<()> {
- use fcntl::FcntlArg::F_SETFL;
+ use crate::fcntl::FcntlArg::F_SETFL;
let mut res = Ok(0);