We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7437769 commit 1dc6e64Copy full SHA for 1dc6e64
src/unix/mod.rs
@@ -66,10 +66,21 @@ s! {
66
// See https://sourceware.org/bugzilla/show_bug.cgi?id=16437
67
pub struct timespec {
68
pub tv_sec: time_t,
69
- #[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
+ #[cfg(all(gnu_time_bits64, target_endian = "big"))]
70
+ __pad: i32,
71
+ #[cfg(all(
72
+ not(target_env = "gnu"),
73
+ target_arch = "x86_64",
74
+ target_pointer_width = "32"
75
+ ))]
76
pub tv_nsec: i64,
- #[cfg(not(all(target_arch = "x86_64", target_pointer_width = "32")))]
77
+ #[cfg(any(
78
+ target_env = "gnu",
79
+ not(all(target_arch = "x86_64", target_pointer_width = "32"))
80
81
pub tv_nsec: c_long,
82
+ #[cfg(all(gnu_time_bits64, target_endian = "little"))]
83
84
}
85
86
pub struct rlimit {
0 commit comments