@@ -23,31 +23,33 @@ diff --git a/library/std/src/sys/unix/fs.rs b/library/std/src/sys/unix/fs.rs
2323index 7181451de575fcb8ff7df27ba5a66b18a08904be..141e1726db49f1ac483a5788bdbc31388a1c942e 100644
2424--- a/library/std/src/sys/unix/fs.rs
2525+++ b/library/std/src/sys/unix/fs.rs
26- @@ -13,23 +13,11 @@
26+ @@ -13,25 +13,11 @@
2727 use crate::sys::{cvt, cvt_r};
2828 use crate::sys_common::{AsInner, AsInnerMut, FromInner, IntoInner};
2929
3030- #[cfg(any(
3131- all(target_os = "linux", target_env = "gnu"),
3232- target_os = "macos",
3333- target_os = "ios",
34+ - target_os = "watchos",
3435- ))]
3536- use crate::sys::weak::syscall;
36- #[cfg(target_os = "macos")]
37+ #[cfg(any( target_os = "android", target_os = " macos") )]
3738 use crate::sys::weak::weak;
3839
3940 use libc::{c_int, mode_t};
4041
4142- #[cfg(any(
4243- target_os = "macos",
4344- target_os = "ios",
45+ - target_os = "watchos",
4446- all(target_os = "linux", target_env = "gnu")
4547- ))]
4648- use libc::c_char;
4749 #[cfg(any(target_os = "linux", target_os = "emscripten", target_os = "android"))]
4850 use libc::dirfd;
4951 #[cfg(any(target_os = "linux", target_os = "emscripten"))]
50- @@ -85 ,20 +73,9 @@
52+ @@ -87 ,20 +73,9 @@
5153 // https://github.com/rust-lang/rust/pull/67774
5254 macro_rules! cfg_has_statx {
5355 ({ $($then_tt:tt)* } else { $($else_tt:tt)* }) => {
0 commit comments