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 @@ -326,7 +326,21 @@ s! {
326
326
}
327
327
328
328
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) ) ) ]
329
331
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
+ #[ cfg( all( target_pointer_width = "32" , linux_time_bits64) ) ]
339
+ pub input_event_sec: c_ulong,
340
+
341
+ #[ cfg( all( target_pointer_width = "32" , linux_time_bits64) ) ]
342
+ pub input_event_usec: c_ulong,
343
+
330
344
pub type_: __u16,
331
345
pub code: __u16,
332
346
pub value: __s32,
You can’t perform that action at this time.
0 commit comments