From de4bee232149ca55d940545d4cf5b1be6c842d68 Mon Sep 17 00:00:00 2001 From: Ian Douglas Scott Date: Sat, 12 Aug 2017 15:17:37 -0700 Subject: [PATCH] mktemp fix for Redox --- src/mktemp/tempdir.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mktemp/tempdir.rs b/src/mktemp/tempdir.rs index 186bcd8f5..a2b3ec86c 100644 --- a/src/mktemp/tempdir.rs +++ b/src/mktemp/tempdir.rs @@ -11,7 +11,7 @@ use std::path::Path; // enough that an attacker will run out of luck before we run out of patience. const NUM_RETRIES: u32 = 1 << 31; -#[cfg(unix)] +#[cfg(any(unix, target_os = "redox"))] fn create_dir>(path: P) -> IOResult<()> { use std::fs::DirBuilder; use std::os::unix::fs::DirBuilderExt;