From 715b07599b02a49138ea8a969c8aa0404af0474a Mon Sep 17 00:00:00 2001 From: Jose Narvaez Date: Wed, 18 Oct 2017 22:57:59 +0100 Subject: [PATCH] RedoxOS support. --- src/output.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/output.rs b/src/output.rs index 6fa59f4..4b6f26a 100644 --- a/src/output.rs +++ b/src/output.rs @@ -5,7 +5,7 @@ use std::{fs, process}; use std::io::{self, Write}; use std::ops::Deref; use std::path::{self, Path, PathBuf, Component}; -#[cfg(unix)] +#[cfg(any(unix, target_os = "redox"))] use std::os::unix::fs::PermissionsExt; use ansi_term; @@ -102,7 +102,7 @@ fn get_path_style<'a>(path: &Path, ls_colors: &'a LsColors) -> Option<&'a ansi_t } } -#[cfg(unix)] +#[cfg(any(unix, target_os = "redox"))] fn is_executable(md: &fs::Metadata) -> bool { md.permissions().mode() & 0o111 != 0 }