aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/freebsd/include/linux/input.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/freebsd/include/linux/input.h')
-rw-r--r--contrib/freebsd/include/linux/input.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/contrib/freebsd/include/linux/input.h b/contrib/freebsd/include/linux/input.h
index ff968e52..f49aa563 100644
--- a/contrib/freebsd/include/linux/input.h
+++ b/contrib/freebsd/include/linux/input.h
@@ -55,10 +55,21 @@ typedef int8_t __s8;
/*
* 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 (__BITS_PER_LONG != 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
__u16 type;
__u16 code;
__s32 value;

Privacy Policy