about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-04-29 22:37:51 +0200
committerGitHub <noreply@github.com>2024-04-29 22:37:51 +0200
commitd94eabaf9bfadbba8ab513287d39e95461e6b86c (patch)
tree7b2ce414ee399e813e35dc0fb78c5a960efd82de
parent42ab090be9b7b1f53c439c3863f05596c5770a00 (diff)
parent982a58e900783a68f6a9b6bfea33f46b7be68386 (diff)
downloadrust-d94eabaf9bfadbba8ab513287d39e95461e6b86c.tar.gz
rust-d94eabaf9bfadbba8ab513287d39e95461e6b86c.zip
Rollup merge of #124530 - djkoloski:fuchsia_dirfd, r=tmandry
Fix Fuchsia build broken by #124210

Fuchsia doesn't support dirfd although we have a symbol stubbed for it.
-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 5987996a3f1..f8fdc6369cd 100644
--- a/library/std/src/sys/pal/unix/fs.rs
+++ b/library/std/src/sys/pal/unix/fs.rs
@@ -894,6 +894,7 @@ impl Drop for Dir {
             target_os = "vita",
             target_os = "hurd",
             target_os = "espidf",
+            target_os = "fuchsia",
         )))]
         {
             let fd = unsafe { libc::dirfd(self.0) };