From 982a58e900783a68f6a9b6bfea33f46b7be68386 Mon Sep 17 00:00:00 2001 From: David Koloski Date: Mon, 29 Apr 2024 17:00:03 +0000 Subject: [PATCH] Fix Fuchsia build broken by #124210 Fuchsia doesn't support dirfd although we have a symbol stubbed for it. --- library/std/src/sys/pal/unix/fs.rs | 1 + 1 file changed, 1 insertion(+) 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) };