From 19f57d4a9a7c64982628a7e00219c016de73e7ae Mon Sep 17 00:00:00 2001 From: Kevin Wern Date: Mon, 16 Sep 2019 22:50:08 -0400 Subject: [PATCH] time.rs: move newlib arm case to u32, not i32 --- src/time.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/time.rs b/src/time.rs index 7713266870..8d26ac7c0b 100644 --- a/src/time.rs +++ b/src/time.rs @@ -6,7 +6,6 @@ use libc; libc_enum! { #[cfg_attr(any( target_env = "uclibc", - all(target_env = "newlib", target_arch = "arm"), target_os = "fuchsia", target_os = "redox", target_os = "freebsd", @@ -20,7 +19,11 @@ libc_enum! { target_os = "solaris", target_os = "illumos")), ), repr(i32))] - #[cfg_attr(any(target_os = "macos", target_os = "ios"), repr(u32))] + #[cfg_attr(any( + all(target_env = "newlib", target_arch = "arm"), + target_os = "macos", + target_os = "ios", + ), repr(u32))] #[cfg_attr(any( all(target_env = "newlib", target_arch = "aarch64"), all(not(any(target_env = "newlib", target_env = "uclibc")), target_os = "hermit"),