aboutsummaryrefslogtreecommitdiff
path: root/include/standard-headers/linux/input.h
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2018-03-13 09:38:18 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2018-03-13 12:02:32 +0100
commit9f2d175db5c29b23bc1a560041043d0b10ee57dc (patch)
tree866271220653d6776f45eef4256151df4d82229d /include/standard-headers/linux/input.h
parentfb5fff15881ba7a002924b967eb211c002897983 (diff)
update Linux headers to 4.16-rc5
Note that VIRTIO_GPU_CAPSET_VIRGL2 was added manually so it has to be added manually after re-running scripts/update-linux-headers.sh. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/standard-headers/linux/input.h')
-rw-r--r--include/standard-headers/linux/input.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/standard-headers/linux/input.h b/include/standard-headers/linux/input.h
index bc3e6d3d5b..939b62775c 100644
--- a/include/standard-headers/linux/input.h
+++ b/include/standard-headers/linux/input.h
@@ -18,10 +18,21 @@
/*
* The event structure itself
+ * Note that __USE_TIME_BITS64 is defined by libc based on
+ * application's request to use 64 bit time_t.
*/
struct input_event {
+#if (HOST_LONG_BITS != 32 || !defined(__USE_TIME_BITS64)) && !defined(__KERNEL)
struct timeval time;
+#define input_event_sec time.tv_sec
+#define input_event_usec time.tv_usec
+#else
+ __kernel_ulong_t __sec;
+ __kernel_ulong_t __usec;
+#define input_event_sec __sec
+#define input_event_usec __usec
+#endif
uint16_t type;
uint16_t code;
int32_t value;