Skip to content

Commit

Permalink
Add Apple watchOS support
Browse files Browse the repository at this point in the history
  • Loading branch information
simlay committed Nov 29, 2023
1 parent 3468b4b commit 2b4ff3f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tokio-util/tests/udp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use std::io;
use std::sync::Arc;

#[cfg_attr(
any(target_os = "macos", target_os = "ios", target_os = "tvos"),
any(target_os = "macos", target_os = "ios", target_os = "tvos", target_os = "watchos"),
allow(unused_assignments)
)]
#[tokio::test]
Expand Down Expand Up @@ -44,7 +44,7 @@ async fn send_framed_byte_codec() -> std::io::Result<()> {
b_soc = b.into_inner();
}

#[cfg(not(any(target_os = "macos", target_os = "ios", target_os = "tvos")))]
#[cfg(not(any(target_os = "macos", target_os = "ios", target_os = "tvos", target_os = "watchos")))]
// test sending & receiving an empty message
{
let mut a = UdpFramed::new(a_soc, ByteCodec);
Expand Down
4 changes: 2 additions & 2 deletions tokio/src/net/unix/ucred.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ pub(crate) use self::impl_netbsd::get_peer_cred;
#[cfg(any(target_os = "dragonfly", target_os = "freebsd"))]
pub(crate) use self::impl_bsd::get_peer_cred;

#[cfg(any(target_os = "macos", target_os = "ios", target_os = "tvos"))]
#[cfg(any(target_os = "macos", target_os = "ios", target_os = "tvos", target_os = "watchos"))]
pub(crate) use self::impl_macos::get_peer_cred;

#[cfg(any(target_os = "solaris", target_os = "illumos"))]
Expand Down Expand Up @@ -187,7 +187,7 @@ pub(crate) mod impl_bsd {
}
}

#[cfg(any(target_os = "macos", target_os = "ios", target_os = "tvos"))]
#[cfg(any(target_os = "macos", target_os = "ios", target_os = "tvos", target_os = "watchos"))]
pub(crate) mod impl_macos {
use crate::net::unix::{self, UnixStream};

Expand Down

0 comments on commit 2b4ff3f

Please sign in to comment.