Skip to content

Commit f0f109b

Browse files
committed
musl: time64: adjust struct timespec definition
This is equivalent to upstream commit bminor/musl@9b2921b.
1 parent 5bde4db commit f0f109b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/unix/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,14 @@ s! {
7272
#[cfg(all(not(target_env = "gnu"), not(target_os = "aix")))]
7373
pub struct timespec {
7474
pub tv_sec: time_t,
75+
#[cfg(all(musl32_time64, target_endian = "big"))]
76+
__pad0: Padding<u32>,
7577
#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
7678
pub tv_nsec: i64,
7779
#[cfg(not(all(target_arch = "x86_64", target_pointer_width = "32")))]
7880
pub tv_nsec: c_long,
81+
#[cfg(all(musl32_time64, target_endian = "little"))]
82+
__pad0: Padding<u32>,
7983
}
8084

8185
pub struct rlimit {

0 commit comments

Comments
 (0)