mirror of
https://github.com/uutils/coreutils
synced 2024-11-17 02:08:09 +00:00
chmod, install, uucore: fix build on Windows
This commit is contained in:
parent
479aeed9f6
commit
2e7f969404
3 changed files with 4 additions and 2 deletions
|
@ -20,6 +20,7 @@ use std::fs;
|
|||
use std::os::unix::fs::{MetadataExt, PermissionsExt};
|
||||
use std::path::Path;
|
||||
use walker::Walker;
|
||||
#[cfg(not(windows))]
|
||||
use uucore::mode;
|
||||
|
||||
const NAME: &'static str = "chmod";
|
||||
|
|
|
@ -2,6 +2,7 @@ extern crate libc;
|
|||
|
||||
use std::path::Path;
|
||||
use std::fs;
|
||||
#[cfg(not(windows))]
|
||||
use uucore::mode;
|
||||
|
||||
/// Takes a user-supplied string and tries to parse to u16 mode bitmask.
|
||||
|
|
|
@ -17,9 +17,9 @@ pub mod utf8;
|
|||
pub mod encoding;
|
||||
#[cfg(feature = "parse_time")]
|
||||
pub mod parse_time;
|
||||
#[cfg(feature = "mode")]
|
||||
pub mod mode;
|
||||
|
||||
#[cfg(all(not(windows), feature = "mode"))]
|
||||
pub mod mode;
|
||||
#[cfg(all(unix, not(target_os = "fuchsia"), feature = "utmpx"))]
|
||||
pub mod utmpx;
|
||||
#[cfg(all(unix, feature = "utsname"))]
|
||||
|
|
Loading…
Reference in a new issue