1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-08-01 21:47:46 +00:00

Make ls build on Redox

This commit is contained in:
Ian Douglas Scott 2017-07-25 16:26:36 -07:00
parent f4f80f0231
commit b9446c0766
No known key found for this signature in database
GPG key ID: 4924E10E199B5959

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") {