File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -414,6 +414,18 @@ s! {
414414 __pos: off64_t,
415415 __state: crate :: mbstate_t,
416416 }
417+
418+ // linux x32 compatibility
419+ // See https://sourceware.org/bugzilla/show_bug.cgi?id=16437
420+ pub struct timespec {
421+ pub tv_sec: time_t,
422+ #[ cfg( all( gnu_time_bits64, target_endian = "big" ) ) ]
423+ __pad: i32 ,
424+ #[ cfg( not( all( target_arch = "x86_64" , target_pointer_width = "32" ) ) ) ]
425+ pub tv_nsec: c_long,
426+ #[ cfg( all( gnu_time_bits64, target_endian = "little" ) ) ]
427+ __pad: i32 ,
428+ }
417429}
418430
419431impl siginfo_t {
Original file line number Diff line number Diff line change 6464
6565 // linux x32 compatibility
6666 // See https://sourceware.org/bugzilla/show_bug.cgi?id=16437
67+ #[ cfg( not( target_env = "gnu" ) ) ]
6768 pub struct timespec {
6869 pub tv_sec: time_t,
6970 #[ cfg( all( target_arch = "x86_64" , target_pointer_width = "32" ) ) ]
You can’t perform that action at this time.
0 commit comments