Skip to content

Commit

Permalink
Fix compilation for a few tier 2 targets
Browse files Browse the repository at this point in the history
  • Loading branch information
hkratz authored and pietroalbini committed Jan 20, 2022
1 parent 32080ad commit 0a6c9ad
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions library/std/src/sys/unix/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -670,12 +670,7 @@ impl DirEntry {
fn name_cstr(&self) -> &CStr {
unsafe { CStr::from_ptr(self.entry.d_name.as_ptr()) }
}
#[cfg(any(
target_os = "solaris",
target_os = "illumos",
target_os = "fuchsia",
target_os = "redox"
))]
#[cfg(any(target_os = "solaris", target_os = "illumos", target_os = "fuchsia"))]
fn name_cstr(&self) -> &CStr {
&self.name
}
Expand Down Expand Up @@ -1631,7 +1626,8 @@ mod remove_dir_impl {
target_os = "solaris",
target_os = "illumos",
target_os = "haiku",
target_os = "vxworks"
target_os = "vxworks",
target_os = "fuchsia"
))]
fn is_dir(_ent: &DirEntry) -> Option<bool> {
None
Expand All @@ -1641,7 +1637,8 @@ mod remove_dir_impl {
target_os = "solaris",
target_os = "illumos",
target_os = "haiku",
target_os = "vxworks"
target_os = "vxworks",
target_os = "fuchsia"
)))]
fn is_dir(ent: &DirEntry) -> Option<bool> {
match ent.entry.d_type {
Expand Down

0 comments on commit 0a6c9ad

Please sign in to comment.