From 68c988ff64041b3a431d50e41d9dd1bab972b945 Mon Sep 17 00:00:00 2001 From: Vladimir Michael Eatwell Date: Thu, 17 Mar 2022 16:19:21 +0000 Subject: [PATCH] Use target_pointer_width attribute --- src/unix/bsd/apple/mod.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/unix/bsd/apple/mod.rs b/src/unix/bsd/apple/mod.rs index 2983d56b32a4f..4133c2b504e1f 100644 --- a/src/unix/bsd/apple/mod.rs +++ b/src/unix/bsd/apple/mod.rs @@ -1172,9 +1172,9 @@ s_no_extra_traits! { pub ifi_noproto: u64, pub ifi_recvtiming: u32, pub ifi_xmittiming: u32, - #[cfg(any(target_arch = "arm", target_arch = "x86", target_pointer_width = "32"))] + #[cfg(target_pointer_width = "32")] pub ifi_lastchange: ::timeval, - #[cfg(not(any(target_arch = "arm", target_arch = "x86", target_pointer_width = "32")))] + #[cfg(not(target_pointer_width = "32"))] pub ifi_lastchange: timeval32, } @@ -5522,10 +5522,10 @@ extern "C" { } cfg_if! { - if #[cfg(any(target_arch = "arm", target_arch = "x86", target_pointer_width = "32"))] { + if #[cfg(target_pointer_width = "32")] { mod b32; pub use self::b32::*; - } else if #[cfg(any(target_arch = "x86_64", target_arch = "aarch64"))] { + } else if #[cfg(target_pointer_width = "64")] { mod b64; pub use self::b64::*; } else {