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
commit a7f4a2edc6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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) };