From bdf1eae36079e21f449e8f3859ebfa584b9ffbd0 Mon Sep 17 00:00:00 2001 From: Andrea Ciliberti Date: Fri, 3 May 2024 10:09:28 +0200 Subject: [PATCH] Horizon OS: dirfd unavailable --- 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 d2006dfc12b55..32cdd13fbebda 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) };