mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-08-02 14:07:46 +00:00
Make ls build on Redox
This commit is contained in:
parent
f4f80f0231
commit
b9446c0766
1 changed files with 2 additions and 2 deletions
|
@ -34,7 +34,7 @@ use std::io::Write;
|
||||||
#[cfg(unix)]
|
#[cfg(unix)]
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
|
|
||||||
#[cfg(unix)]
|
#[cfg(any(unix, target_os = "redox"))]
|
||||||
use std::os::unix::fs::MetadataExt;
|
use std::os::unix::fs::MetadataExt;
|
||||||
#[cfg(unix)]
|
#[cfg(unix)]
|
||||||
use std::os::unix::fs::FileTypeExt;
|
use std::os::unix::fs::FileTypeExt;
|
||||||
|
@ -183,7 +183,7 @@ fn list(options: getopts::Matches) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(unix)]
|
#[cfg(any(unix, target_os = "redox"))]
|
||||||
fn sort_entries(entries: &mut Vec<PathBuf>, options: &getopts::Matches) {
|
fn sort_entries(entries: &mut Vec<PathBuf>, options: &getopts::Matches) {
|
||||||
let mut reverse = options.opt_present("r");
|
let mut reverse = options.opt_present("r");
|
||||||
if options.opt_present("t") {
|
if options.opt_present("t") {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue