Skip to content

Commit 15e1f01

Browse files
committed
linux: Update struct input_event for __USE_TIME_BITS64
1 parent 1ea7c90 commit 15e1f01

File tree

1 file changed

+13
-1
lines changed
  • src/unix/linux_like/linux

1 file changed

+13
-1
lines changed

src/unix/linux_like/linux/mod.rs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,19 @@ s! {
326326
}
327327

328328
pub struct input_event {
329-
pub time: crate::timeval,
329+
#[cfg(any(target_pointer_width = "64", not(linux_time_bits64)))]
330+
pub input_event_sec: time_t,
331+
#[cfg(all(target_pointer_width = "32", linux_time_bits64))]
332+
pub input_event_sec: c_ulong,
333+
334+
#[cfg(any(target_pointer_width = "64", not(linux_time_bits64)))]
335+
pub input_event_usec: suseconds_t,
336+
#[cfg(all(target_pointer_width = "32", linux_time_bits64))]
337+
pub input_event_usec: c_ulong,
338+
339+
#[cfg(target_arch = "sparc64")]
340+
_pad1: c_int,
341+
330342
pub type_: __u16,
331343
pub code: __u16,
332344
pub value: __s32,

0 commit comments

Comments
 (0)