Skip to content

Commit c758a75

Browse files
hkratzpietroalbini
authored andcommitted
Fix compilation for a few tier 2 targets
1 parent 1e88461 commit c758a75

File tree

1 file changed

+5
-8
lines changed
  • library/std/src/sys/unix

1 file changed

+5
-8
lines changed

library/std/src/sys/unix/fs.rs

+5-8
Original file line numberDiff line numberDiff line change
@@ -670,12 +670,7 @@ impl DirEntry {
670670
fn name_cstr(&self) -> &CStr {
671671
unsafe { CStr::from_ptr(self.entry.d_name.as_ptr()) }
672672
}
673-
#[cfg(any(
674-
target_os = "solaris",
675-
target_os = "illumos",
676-
target_os = "fuchsia",
677-
target_os = "redox"
678-
))]
673+
#[cfg(any(target_os = "solaris", target_os = "illumos", target_os = "fuchsia"))]
679674
fn name_cstr(&self) -> &CStr {
680675
&self.name
681676
}
@@ -1631,7 +1626,8 @@ mod remove_dir_impl {
16311626
target_os = "solaris",
16321627
target_os = "illumos",
16331628
target_os = "haiku",
1634-
target_os = "vxworks"
1629+
target_os = "vxworks",
1630+
target_os = "fuchsia"
16351631
))]
16361632
fn is_dir(_ent: &DirEntry) -> Option<bool> {
16371633
None
@@ -1641,7 +1637,8 @@ mod remove_dir_impl {
16411637
target_os = "solaris",
16421638
target_os = "illumos",
16431639
target_os = "haiku",
1644-
target_os = "vxworks"
1640+
target_os = "vxworks",
1641+
target_os = "fuchsia"
16451642
)))]
16461643
fn is_dir(ent: &DirEntry) -> Option<bool> {
16471644
match ent.entry.d_type {

0 commit comments

Comments
 (0)