about summary refs log tree commit diff
path: root/library/std/src/sys/fs/unix.rs
diff options
context:
space:
mode:
authorThe rustc-dev-guide Cronjob Bot <github-actions@github.com>2025-04-21 04:03:09 +0000
committerThe rustc-dev-guide Cronjob Bot <github-actions@github.com>2025-04-21 04:03:09 +0000
commitd12c1f581f97ca0fe67d1498fa2c34b61a8bd189 (patch)
treecad0adefe81f03e6b1727edbe2ff7cd35f33ebf2 /library/std/src/sys/fs/unix.rs
parent49b62eeacc0b57c01464577c5f3437f2f29f9683 (diff)
parentb8005bff3248cfc6e327faf4fa631ac49bb49ba9 (diff)
downloadrust-d12c1f581f97ca0fe67d1498fa2c34b61a8bd189.tar.gz
rust-d12c1f581f97ca0fe67d1498fa2c34b61a8bd189.zip
Merge from rustc
Diffstat (limited to 'library/std/src/sys/fs/unix.rs')
-rw-r--r--library/std/src/sys/fs/unix.rs9
1 files changed, 6 insertions, 3 deletions
diff --git a/library/std/src/sys/fs/unix.rs b/library/std/src/sys/fs/unix.rs
index 687fc322e59..bc8817bac70 100644
--- a/library/std/src/sys/fs/unix.rs
+++ b/library/std/src/sys/fs/unix.rs
@@ -12,10 +12,11 @@ use libc::c_char;
     all(target_os = "linux", not(target_env = "musl")),
     target_os = "android",
     target_os = "fuchsia",
-    target_os = "hurd"
+    target_os = "hurd",
+    target_os = "illumos",
 ))]
 use libc::dirfd;
-#[cfg(target_os = "fuchsia")]
+#[cfg(any(target_os = "fuchsia", target_os = "illumos"))]
 use libc::fstatat as fstatat64;
 #[cfg(any(all(target_os = "linux", not(target_env = "musl")), target_os = "hurd"))]
 use libc::fstatat64;
@@ -892,7 +893,8 @@ impl DirEntry {
             all(target_os = "linux", not(target_env = "musl")),
             target_os = "android",
             target_os = "fuchsia",
-            target_os = "hurd"
+            target_os = "hurd",
+            target_os = "illumos",
         ),
         not(miri) // no dirfd on Miri
     ))]
@@ -922,6 +924,7 @@ impl DirEntry {
             target_os = "android",
             target_os = "fuchsia",
             target_os = "hurd",
+            target_os = "illumos",
         )),
         miri
     ))]