mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
chmod, install, uucore: fix build on Windows
This commit is contained in:
@@ -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.
|
||||
|
||||
+2
-2
@@ -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"))]
|
||||
|
||||
Reference in New Issue
Block a user