File tree 1 file changed +14
-0
lines changed
src/unix/linux_like/linux
1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -327,7 +327,21 @@ s! {
327
327
}
328
328
329
329
pub struct input_event {
330
+ // FIXME(1.0): Change to the commented variant, see https://github.com/rust-lang/libc/pull/4148#discussion_r1857511742
331
+ #[ cfg( any( target_pointer_width = "64" , not( linux_time_bits64) ) ) ]
330
332
pub time: crate :: timeval,
333
+ // #[cfg(any(target_pointer_width = "64", not(linux_time_bits64)))]
334
+ // pub input_event_sec: time_t,
335
+ // #[cfg(any(target_pointer_width = "64", not(linux_time_bits64)))]
336
+ // pub input_event_usec: suseconds_t,
337
+ // #[cfg(target_arch = "sparc64")]
338
+ // _pad1: c_int,
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
+
331
345
pub type_: __u16,
332
346
pub code: __u16,
333
347
pub value: __s32,
You can’t perform that action at this time.
0 commit comments