Skip to content

Commit fa76a9a

Browse files
committed
Update struct input_event for _TIME_BITS=64
1 parent f714a0e commit fa76a9a

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
@@ -187,7 +187,12 @@ s! {
187187
}
188188

189189
pub struct input_event {
190+
#[cfg(not(all(target_env = "gnu", target_pointer_width = "32", not(target_arch = "x86_64"))))]
190191
pub time: ::timeval,
192+
#[cfg(all(target_env = "gnu", target_pointer_width = "32", not(target_arch = "x86_64")))]
193+
pub __sec: ::c_ulong,
194+
#[cfg(all(target_env = "gnu", target_pointer_width = "32", not(target_arch = "x86_64")))]
195+
pub __usec: ::c_ulong,
191196
pub type_: ::__u16,
192197
pub code: ::__u16,
193198
pub value: ::__s32,

0 commit comments

Comments
 (0)