From 0a6c9adc4a09d6c34437a57e83adf78b2ad1e7db Mon Sep 17 00:00:00 2001 From: Hans Kratz Date: Thu, 20 Jan 2022 12:43:54 +0100 Subject: [PATCH] Fix compilation for a few tier 2 targets --- library/std/src/sys/unix/fs.rs | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/library/std/src/sys/unix/fs.rs b/library/std/src/sys/unix/fs.rs index 16460bee66ff2..f8deda93fe2a7 100644 --- a/library/std/src/sys/unix/fs.rs +++ b/library/std/src/sys/unix/fs.rs @@ -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 } @@ -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 { None @@ -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 { match ent.entry.d_type {