From cd30ba3ae2f0edd9fabc5acfa8bf83317973eb7b Mon Sep 17 00:00:00 2001 From: Simonas Kazlauskas Date: Sat, 8 Jun 2024 20:45:25 +0300 Subject: [PATCH] apple: add cfgs for tvos/watchos/visionos --- src/os/unix/consts.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/os/unix/consts.rs b/src/os/unix/consts.rs index ed3edaf82..4f069e212 100644 --- a/src/os/unix/consts.rs +++ b/src/os/unix/consts.rs @@ -69,6 +69,10 @@ mod posix { target_os = "macos", target_os = "ios", + target_os = "tvos", + target_os = "visionos", + target_os = "watchos", + target_os = "freebsd", target_os = "dragonfly", target_os = "openbsd", @@ -103,6 +107,10 @@ mod posix { target_os = "macos", target_os = "ios", + target_os = "tvos", + target_os = "visionos", + target_os = "watchos", + target_os = "freebsd", target_os = "dragonfly", target_os = "openbsd", @@ -147,6 +155,9 @@ mod posix { } else if #[cfg(any( target_os = "macos", target_os = "ios", + target_os = "tvos", + target_os = "visionos", + target_os = "watchos", ))] { pub(super) const RTLD_GLOBAL: c_int = 8; } else if #[cfg(any( @@ -188,6 +199,9 @@ mod posix { } else if #[cfg(any( target_os = "macos", target_os = "ios", + target_os = "tvos", + target_os = "visionos", + target_os = "watchos", ))] { pub(super) const RTLD_LOCAL: c_int = 4; } else if #[cfg(any(