summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/unistd.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/unistd.rs b/src/unistd.rs
index 7ee0a14e..53e0ecc9 100644
--- a/src/unistd.rs
+++ b/src/unistd.rs
@@ -505,6 +505,7 @@ pub fn mkdir<P: ?Sized + NixPath>(path: &P, mode: Mode) -> Result<()> {
/// }
/// ```
#[inline]
+#[cfg(not(target_os = "redox"))]
pub fn mkfifo<P: ?Sized + NixPath>(path: &P, mode: Mode) -> Result<()> {
let res = path.with_nix_path(|cstr| {
unsafe { libc::mkfifo(cstr.as_ptr(), mode.bits() as mode_t) }