Skip to content

Commit 264a539

Browse files
snoggetgross35
authored andcommitted
Add missing timespec.tv_nsec for gnux32
The tv_nsec field was removed by mistake for gnux32 in bbaa017 ("gnu: Update struct timespec for GNU _TIME_BITS=64"). Fixes #4495 Link: https://github.com/bminor/glibc/blob/d1b27eeda3d92f33314e93537437cab11ddf4777/time/bits/types/struct_timespec.h#L11-L31 [ add referenced commit summary and link to the message - Trevor ] (backport <#4497>) (cherry picked from commit e9bd0b4)
1 parent 7d92568 commit 264a539

File tree

1 file changed

+2
-0
lines changed
  • src/unix/linux_like/linux/gnu

1 file changed

+2
-0
lines changed

src/unix/linux_like/linux/gnu/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,8 @@ s! {
366366
__pad: i32,
367367
#[cfg(not(all(target_arch = "x86_64", target_pointer_width = "32")))]
368368
pub tv_nsec: c_long,
369+
#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
370+
pub tv_nsec: i64,
369371
#[cfg(all(gnu_time_bits64, target_endian = "little"))]
370372
__pad: i32,
371373
}

0 commit comments

Comments
 (0)