summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Michael Eatwell <dimir@fb.com>2022-03-17 16:19:21 +0000
committerVladimir Michael Eatwell <dimir@fb.com>2022-03-17 16:19:21 +0000
commit68c988ff64041b3a431d50e41d9dd1bab972b945 (patch)
tree0b8b05bd71e40673ddf3d930140b910b3619242f
parentf073685f728891f104bf2125f1bcb9f123cf5d3b (diff)
downloadrust-libc-68c988ff64041b3a431d50e41d9dd1bab972b945.tar.gz
Use target_pointer_width attribute
-rw-r--r--src/unix/bsd/apple/mod.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/unix/bsd/apple/mod.rs b/src/unix/bsd/apple/mod.rs
index 2983d56b32..4133c2b504 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 {