File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
src/unix/linux_like/linux Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -326,7 +326,22 @@ s! {
326326 }
327327
328328 pub struct input_event {
329+ // FIXME(1.0): Change to the commented variant, see https://github.com/rust-lang/libc/pull/4148#discussion_r1857511742
330+ #[ cfg( any( target_pointer_width = "64" , not( linux_time_bits64) ) ) ]
329331 pub time: crate :: timeval,
332+ // #[cfg(any(target_pointer_width = "64", not(linux_time_bits64)))]
333+ // pub input_event_sec: time_t,
334+ // #[cfg(any(target_pointer_width = "64", not(linux_time_bits64)))]
335+ // pub input_event_usec: suseconds_t,
336+ // #[cfg(target_arch = "sparc64")]
337+ // _pad1: c_int,
338+
339+ #[ cfg( all( target_pointer_width = "32" , linux_time_bits64) ) ]
340+ pub input_event_sec: c_ulong,
341+
342+ #[ cfg( all( target_pointer_width = "32" , linux_time_bits64) ) ]
343+ pub input_event_usec: c_ulong,
344+
330345 pub type_: __u16,
331346 pub code: __u16,
332347 pub value: __s32,
You can’t perform that action at this time.
0 commit comments