Skip to content

Commit

Permalink
fixup! Update struct timespec for _TIME_BITS=64
Browse files Browse the repository at this point in the history
  • Loading branch information
snogge committed Mar 1, 2024
1 parent d31d8c6 commit b8c3171
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/unix/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,15 @@ s! {
pub struct timespec {
pub tv_sec: time_t,

#[cfg(all(target_env = "gnu", any(target_arch = "powerpc", target_arch = "mips"), target_pointer_width = "32"))]
#[cfg(all(gnu_time64_abi, any(target_arch = "powerpc", target_arch = "mips")))]
__pad: i32,

#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
pub tv_nsec: i64,
#[cfg(not(all(target_arch = "x86_64", target_pointer_width = "32")))]
pub tv_nsec: ::c_long,

#[cfg(all(target_env = "gnu", any(target_arch = "x86", target_arch = "arm"), target_pointer_width = "32"))]
#[cfg(all(gnu_time64_abi, any(target_arch = "x86", target_arch = "arm")))]
__pad: i32,
}

Expand Down

0 comments on commit b8c3171

Please sign in to comment.