From a777389c13ae0d64eb3ec28f29ba77d3eaec565a Mon Sep 17 00:00:00 2001 From: Alan Somers Date: Sun, 31 May 2020 16:47:13 -0600 Subject: [PATCH] fixup to "Convert the crate to edition 2018" --- src/unistd.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/unistd.rs b/src/unistd.rs index 963573493d..8ff71e0532 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);