diff options
Diffstat (limited to 'include/uapi/linux/input.h')
-rw-r--r-- | include/uapi/linux/input.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/uapi/linux/input.h b/include/uapi/linux/input.h index 8c5a0bf6ee35..7288a7c573cc 100644 --- a/include/uapi/linux/input.h +++ b/include/uapi/linux/input.h | |||
@@ -21,10 +21,21 @@ | |||
21 | 21 | ||
22 | /* | 22 | /* |
23 | * The event structure itself | 23 | * The event structure itself |
24 | * Note that __USE_TIME_BITS64 is defined by libc based on | ||
25 | * application's request to use 64 bit time_t. | ||
24 | */ | 26 | */ |
25 | 27 | ||
26 | struct input_event { | 28 | struct input_event { |
29 | #if (__BITS_PER_LONG != 32 || !defined(__USE_TIME_BITS64)) && !defined(__KERNEL) | ||
27 | struct timeval time; | 30 | struct timeval time; |
31 | #define input_event_sec time.tv_sec | ||
32 | #define input_event_usec time.tv_usec | ||
33 | #else | ||
34 | __kernel_ulong_t __sec; | ||
35 | __kernel_ulong_t __usec; | ||
36 | #define input_event_sec __sec | ||
37 | #define input_event_usec __usec | ||
38 | #endif | ||
28 | __u16 type; | 39 | __u16 type; |
29 | __u16 code; | 40 | __u16 code; |
30 | __s32 value; | 41 | __s32 value; |