Skip to content

Commit 4ee38cf

Browse files
committed
Disable mkfifo for Redox
FIFOs are not supported (yet?) by RedoxFS, so disable it
1 parent e78a8dc commit 4ee38cf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/unistd.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,7 @@ pub fn mkdir<P: ?Sized + NixPath>(path: &P, mode: Mode) -> Result<()> {
505505
/// }
506506
/// ```
507507
#[inline]
508+
#[cfg(not(target_os = "redox"))]
508509
pub fn mkfifo<P: ?Sized + NixPath>(path: &P, mode: Mode) -> Result<()> {
509510
let res = path.with_nix_path(|cstr| {
510511
unsafe { libc::mkfifo(cstr.as_ptr(), mode.bits() as mode_t) }

0 commit comments

Comments
 (0)