about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-05-03 15:26:11 +0200
committerGitHub <noreply@github.com>2024-05-03 15:26:11 +0200
commita7f4a2edc67e197d3c445381b7b461047bdeb4ec (patch)
tree9adb202e3ecf202feb709912067a555e785f39a2
parent82030f2dd4ca2ce1938446a7a0364a6666a240ff (diff)
parentbdf1eae36079e21f449e8f3859ebfa584b9ffbd0 (diff)
downloadrust-a7f4a2edc67e197d3c445381b7b461047bdeb4ec.tar.gz
rust-a7f4a2edc67e197d3c445381b7b461047bdeb4ec.zip
Rollup merge of #124649 - Meziu:master, r=ChrisDenton
Fix HorizonOS build broken by #124210

HorizonOS (for the Tier-3 target `armv6k-nintendo-3ds`) does not support `dirfd()`, as many other similar targets.
-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) };