about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndrea Ciliberti <meziu210@icloud.com>2024-05-03 10:09:28 +0200
committerAndrea Ciliberti <meziu210@icloud.com>2024-05-03 10:09:28 +0200
commitbdf1eae36079e21f449e8f3859ebfa584b9ffbd0 (patch)
treea0af97170b15b2551921f682a51da5d2384409cb
parent79734f1db8dbe322192dea32c0f6b80ab14c4c1d (diff)
downloadrust-bdf1eae36079e21f449e8f3859ebfa584b9ffbd0.tar.gz
rust-bdf1eae36079e21f449e8f3859ebfa584b9ffbd0.zip
Horizon OS: dirfd unavailable
-rw-r--r--library/std/src/sys/pal/unix/fs.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/std/src/sys/pal/unix/fs.rs b/library/std/src/sys/pal/unix/fs.rs
index d2006dfc12b..32cdd13fbeb 100644
--- a/library/std/src/sys/pal/unix/fs.rs
+++ b/library/std/src/sys/pal/unix/fs.rs
@@ -860,6 +860,7 @@ impl Drop for Dir {
             target_os = "hurd",
             target_os = "espidf",
             target_os = "fuchsia",
+            target_os = "horizon",
         )))]
         {
             let fd = unsafe { libc::dirfd(self.0) };