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.
This commit is contained in:
Matthias Krüger
2024-05-03 15:26:11 +02:00
committed by GitHub
+1
View File
@@ -860,6 +860,7 @@ fn drop(&mut self) {
target_os = "hurd",
target_os = "espidf",
target_os = "fuchsia",
target_os = "horizon",
)))]
{
let fd = unsafe { libc::dirfd(self.0) };