about summary refs log tree commit diff
diff options
context:
space:
mode:
authorHans Kratz <hans@appfour.com>2022-01-20 12:43:54 +0100
committerPietro Albini <pietro.albini@ferrous-systems.com>2022-01-20 16:35:16 +0100
commit0a6c9adc4a09d6c34437a57e83adf78b2ad1e7db (patch)
tree2178bd1e466461339e9f0bc3f16cd50672f5046a
parent32080ad6d0ecdc50c22d214cb64c07874e5ff3c8 (diff)
downloadrust-0a6c9adc4a09d6c34437a57e83adf78b2ad1e7db.tar.gz
rust-0a6c9adc4a09d6c34437a57e83adf78b2ad1e7db.zip
Fix compilation for a few tier 2 targets
-rw-r--r--library/std/src/sys/unix/fs.rs13
1 files changed, 5 insertions, 8 deletions
diff --git a/library/std/src/sys/unix/fs.rs b/library/std/src/sys/unix/fs.rs
index 16460bee66f..f8deda93fe2 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<bool> {
         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<bool> {
         match ent.entry.d_type {