Browse Source

Define function to be valid on macos

Steven Davies 2 years ago
parent
commit
44bfac6846
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/fs/feature/xattr.rs

+ 1 - 1
src/fs/feature/xattr.rs

@@ -96,7 +96,7 @@ fn get_secattr(lister: &lister::Lister, c_path: &std::ffi::CString) -> io::Resul
     }])
 }
 
-#[cfg(target_os = "linux")]
+#[cfg(any(target_os = "macos", target_os = "linux"))]
 pub fn list_attrs(lister: &lister::Lister, path: &Path) -> io::Result<Vec<Attribute>> {
     let c_path = CString::new(path.to_str().ok_or(io::Error::new(io::ErrorKind::Other, "Error: path not convertible to string"))?).map_err(|e| {
         io::Error::new(io::ErrorKind::Other, e)