mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-08-04 06:57:47 +00:00
mktemp fix for Redox
This commit is contained in:
parent
71e8d7ad98
commit
de4bee2321
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ use std::path::Path;
|
||||||
// enough that an attacker will run out of luck before we run out of patience.
|
// enough that an attacker will run out of luck before we run out of patience.
|
||||||
const NUM_RETRIES: u32 = 1 << 31;
|
const NUM_RETRIES: u32 = 1 << 31;
|
||||||
|
|
||||||
#[cfg(unix)]
|
#[cfg(any(unix, target_os = "redox"))]
|
||||||
fn create_dir<P: AsRef<Path>>(path: P) -> IOResult<()> {
|
fn create_dir<P: AsRef<Path>>(path: P) -> IOResult<()> {
|
||||||
use std::fs::DirBuilder;
|
use std::fs::DirBuilder;
|
||||||
use std::os::unix::fs::DirBuilderExt;
|
use std::os::unix::fs::DirBuilderExt;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue