Skip to content

Commit db0fbbf

Browse files
committed
xrOS support
1 parent 8cbf756 commit db0fbbf

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

src/unix/bsd/apple/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6416,7 +6416,7 @@ cfg_if! {
64166416
}
64176417
}
64186418
cfg_if! {
6419-
if #[cfg(any(target_os = "macos", target_os = "ios", target_os = "tvos"))] {
6419+
if #[cfg(any(target_os = "macos", target_os = "ios", target_os = "tvos", target_os = "xros"))] {
64206420
extern "C" {
64216421
pub fn memmem(
64226422
haystack: *const ::c_void,

src/unix/bsd/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ s! {
3939
target_os = "ios",
4040
target_os = "tvos",
4141
target_os = "watchos",
42+
target_os = "xros",
4243
target_os = "netbsd",
4344
target_os = "openbsd")))]
4445
pub pw_fields: ::c_int,
@@ -917,7 +918,7 @@ extern "C" {
917918
}
918919

919920
cfg_if! {
920-
if #[cfg(any(target_os = "macos", target_os = "ios", target_os = "tvos", target_os = "watchos"))] {
921+
if #[cfg(any(target_os = "macos", target_os = "ios", target_os = "tvos", target_os = "watchos", target_os = "xros"))] {
921922
mod apple;
922923
pub use self::apple::*;
923924
} else if #[cfg(any(target_os = "openbsd", target_os = "netbsd"))] {

src/unix/mod.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,7 @@ cfg_if! {
369369
target_os = "ios",
370370
target_os = "tvos",
371371
target_os = "watchos",
372+
target_os = "xros",
372373
target_os = "android",
373374
target_os = "openbsd",
374375
target_os = "nto",
@@ -1018,7 +1019,8 @@ extern "C" {
10181019
target_os = "macos",
10191020
target_os = "ios",
10201021
target_os = "tvos",
1021-
target_os = "watchos"
1022+
target_os = "watchos",
1023+
target_os = "xros"
10221024
),
10231025
link_name = "realpath$DARWIN_EXTSN"
10241026
)]
@@ -1186,7 +1188,8 @@ extern "C" {
11861188
target_os = "macos",
11871189
target_os = "ios",
11881190
target_os = "tvos",
1189-
target_os = "watchos"
1191+
target_os = "watchos",
1192+
target_os = "xros"
11901193
),
11911194
link_name = "res_9_init"
11921195
)]
@@ -1523,6 +1526,7 @@ cfg_if! {
15231526
target_os = "ios",
15241527
target_os = "tvos",
15251528
target_os = "watchos",
1529+
target_os = "xros",
15261530
target_os = "freebsd",
15271531
target_os = "dragonfly",
15281532
target_os = "openbsd",

0 commit comments

Comments
 (0)