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 @@ -436,6 +436,18 @@ s! {
436
436
__pos: off64_t,
437
437
__state: crate :: mbstate_t,
438
438
}
439
+
440
+ // linux x32 compatibility
441
+ // See https://sourceware.org/bugzilla/show_bug.cgi?id=16437
442
+ pub struct timespec {
443
+ pub tv_sec: time_t,
444
+ #[ cfg( all( gnu_time_bits64, target_endian = "big" ) ) ]
445
+ __pad: i32 ,
446
+ #[ cfg( not( all( target_arch = "x86_64" , target_pointer_width = "32" ) ) ) ]
447
+ pub tv_nsec: c_long,
448
+ #[ cfg( all( gnu_time_bits64, target_endian = "little" ) ) ]
449
+ __pad: i32 ,
450
+ }
439
451
}
440
452
441
453
impl siginfo_t {
Original file line number Diff line number Diff line change 64
64
65
65
// linux x32 compatibility
66
66
// See https://sourceware.org/bugzilla/show_bug.cgi?id=16437
67
+ #[ cfg( not( target_env = "gnu" ) ) ]
67
68
pub struct timespec {
68
69
pub tv_sec: time_t,
69
70
#[ cfg( all( target_arch = "x86_64" , target_pointer_width = "32" ) ) ]
You can’t perform that action at this time.
0 commit comments