1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-08-01 05:27:45 +00:00

Merge pull request #1058 from ids1024/redox-ls

Make ls build on Redox
This commit is contained in:
Alex Lyon 2017-07-26 19:07:58 -07:00 committed by GitHub
commit cbba518ef5

View file

@ -34,7 +34,7 @@ use std::io::Write;
#[cfg(unix)]
use std::collections::HashMap;
#[cfg(unix)]
#[cfg(any(unix, target_os = "redox"))]
use std::os::unix::fs::MetadataExt;
#[cfg(unix)]
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) {
let mut reverse = options.opt_present("r");
if options.opt_present("t") {