diff options
author | Ariadne Conill <ariadne@dereferenced.org> | 2020-07-28 04:03:08 -0600 |
---|---|---|
committer | Ariadne Conill <ariadne@dereferenced.org> | 2020-07-28 04:04:23 -0600 |
commit | 7c32bc6f1f689b2c877be3a6b65a68844f9ce7e4 (patch) | |
tree | 3ac5a940db4cf9843ddbfc09de9f2c81488f2e40 | |
parent | 073b1b40bde9935928758c3452176c0d8dc67370 (diff) |
eventcomm: fix compile with pre-time64 kernels
-rw-r--r-- | src/eventcomm.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/eventcomm.h b/src/eventcomm.h index e0f8743..4cd283d 100644 --- a/src/eventcomm.h +++ b/src/eventcomm.h @@ -34,6 +34,14 @@ #include <xf86Xinput.h> #include "synproto.h" +#ifndef input_event_sec +#define input_event_sec time.tv_sec +#endif + +#ifndef input_event_usec +#define input_event_usec time.tv_usec +#endif + /* for auto-dev: */ #define DEV_INPUT_EVENT "/dev/input" #define EVENT_DEV_NAME "event" |