Skip to content

Commit 5213d0b

Browse files
committed
linux: Update struct input_event for glibc _TIME_BITS=64
1 parent 8f514a1 commit 5213d0b

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
@@ -322,7 +322,19 @@ s! {
322322
}
323323

324324
pub struct input_event {
325-
pub time: ::timeval,
325+
#[cfg(any(target_pointer_width = "64", not(gnu_time64_abi)))]
326+
pub input_event_sec: ::time_t,
327+
#[cfg(all(target_pointer_width = "32", gnu_time64_abi))]
328+
pub input_event_sec: ::c_ulong,
329+
330+
#[cfg(any(target_pointer_width = "64", not(gnu_time64_abi)))]
331+
pub input_event_usec: ::suseconds_t,
332+
#[cfg(all(target_pointer_width = "32", gnu_time64_abi))]
333+
pub input_event_usec: ::c_ulong,
334+
335+
#[cfg(target_arch = "sparc64")]
336+
_pad1: ::c_int,
337+
326338
pub type_: ::__u16,
327339
pub code: ::__u16,
328340
pub value: ::__s32,

0 commit comments

Comments
 (0)