Skip to content

Commit a334663

Browse files
committed
Update struct input_event for _TIME_BITS=64
1 parent 91dc624 commit a334663

File tree

1 file changed

+5
-0
lines changed
  • src/unix/linux_like/linux

1 file changed

+5
-0
lines changed

src/unix/linux_like/linux/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,12 @@ s! {
182182
}
183183

184184
pub struct input_event {
185+
#[cfg(not(all(target_env = "gnu", target_pointer_width = "32", not(target_arch = "x86_64"))))]
185186
pub time: ::timeval,
187+
#[cfg(all(target_env = "gnu", target_pointer_width = "32", not(target_arch = "x86_64")))]
188+
pub __sec: ::c_ulong,
189+
#[cfg(all(target_env = "gnu", target_pointer_width = "32", not(target_arch = "x86_64")))]
190+
pub __usec: ::c_ulong,
186191
pub type_: ::__u16,
187192
pub code: ::__u16,
188193
pub value: ::__s32,

0 commit comments

Comments
 (0)