@@ -23,31 +23,33 @@ diff --git a/library/std/src/sys/unix/fs.rs b/library/std/src/sys/unix/fs.rs
23
23
index 7181451de575fcb8ff7df27ba5a66b18a08904be..141e1726db49f1ac483a5788bdbc31388a1c942e 100644
24
24
--- a/library/std/src/sys/unix/fs.rs
25
25
+++ b/library/std/src/sys/unix/fs.rs
26
- @@ -13,23 +13,11 @@
26
+ @@ -13,25 +13,11 @@
27
27
use crate::sys::{cvt, cvt_r};
28
28
use crate::sys_common::{AsInner, AsInnerMut, FromInner, IntoInner};
29
29
30
30
- #[cfg(any(
31
31
- all(target_os = "linux", target_env = "gnu"),
32
32
- target_os = "macos",
33
33
- target_os = "ios",
34
+ - target_os = "watchos",
34
35
- ))]
35
36
- use crate::sys::weak::syscall;
36
- #[cfg(target_os = "macos")]
37
+ #[cfg(any( target_os = "android", target_os = " macos") )]
37
38
use crate::sys::weak::weak;
38
39
39
40
use libc::{c_int, mode_t};
40
41
41
42
- #[cfg(any(
42
43
- target_os = "macos",
43
44
- target_os = "ios",
45
+ - target_os = "watchos",
44
46
- all(target_os = "linux", target_env = "gnu")
45
47
- ))]
46
48
- use libc::c_char;
47
49
#[cfg(any(target_os = "linux", target_os = "emscripten", target_os = "android"))]
48
50
use libc::dirfd;
49
51
#[cfg(any(target_os = "linux", target_os = "emscripten"))]
50
- @@ -85 ,20 +73,9 @@
52
+ @@ -87 ,20 +73,9 @@
51
53
// https://github.com/rust-lang/rust/pull/67774
52
54
macro_rules! cfg_has_statx {
53
55
({ $($then_tt:tt)* } else { $($else_tt:tt)* }) => {
0 commit comments