Skip to content

Commit 4241b40

Browse files
madsmtmDetegr
authored andcommitted
Add support for tvOS, visionOS and watchOS
1 parent 3502f44 commit 4241b40

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/platform/unix/mod.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,10 @@ extern "C" fn os_handler(_: nix::libc::c_int) {
2929
}
3030
}
3131

32-
// pipe2(2) is not available on macOS, iOS, AIX or Haiku, so we need to use pipe(2) and fcntl(2)
32+
// pipe2(2) is not available on macOS, iOS, AIX, Haiku, etc., so we need to use pipe(2) and fcntl(2)
3333
#[inline]
3434
#[cfg(any(
35-
target_os = "ios",
36-
target_os = "macos",
35+
target_vendor = "apple",
3736
target_os = "haiku",
3837
target_os = "aix",
3938
target_os = "nto",
@@ -70,8 +69,7 @@ fn pipe2(flags: nix::fcntl::OFlag) -> nix::Result<(RawFd, RawFd)> {
7069

7170
#[inline]
7271
#[cfg(not(any(
73-
target_os = "ios",
74-
target_os = "macos",
72+
target_vendor = "apple",
7573
target_os = "haiku",
7674
target_os = "aix",
7775
target_os = "nto",

0 commit comments

Comments
 (0)