Skip to content

Commit

Permalink
Add support for tvOS and watchOS (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Nov 1, 2023
1 parent 235907b commit 5341791
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,13 @@ pub fn set_errno(Errno(errno): Errno) {

extern "C" {
#[cfg_attr(
any(target_os = "macos", target_os = "ios", target_os = "freebsd"),
any(
target_os = "macos",
target_os = "ios",
target_os = "tvos",
target_os = "watchos",
target_os = "freebsd"
),
link_name = "__error"
)]
#[cfg_attr(
Expand Down

0 comments on commit 5341791

Please sign in to comment.