Skip to content

Commit 771c937

Browse files
committed
add missing "ios" to "macos" compilation cases
1 parent 8552f97 commit 771c937

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/time.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ libc_enum! {
1919
target_os = "illumos",
2020
all(target_env = "newlib", target_arch = "arm"),
2121
), repr(i32))]
22-
#[cfg_attr(target_os = "macos", repr(u32))]
22+
#[cfg_attr(any(target_os = "macos", target_os = "ios"), repr(u32))]
2323
#[cfg_attr(any(
2424
target_os = "hermit",
2525
all(target_env = "newlib", target_arch = "aarch64"),
@@ -138,6 +138,7 @@ pub fn clock_gettime(clk_id: ClockId) -> Result<TimeSpec> {
138138
#[cfg(not(
139139
any(
140140
target_os = "macos",
141+
target_os = "ios",
141142
target_os = "redox",
142143
target_os = "hermit",
143144
)

0 commit comments

Comments
 (0)