diff options
author | Jari Vetoniemi <mailroxas@gmail.com> | 2018-07-04 23:30:48 +0300 |
---|---|---|
committer | Jari Vetoniemi <mailroxas@gmail.com> | 2018-07-04 23:30:48 +0300 |
commit | 07a7d361fd1a56784f531cdb5b5dbeff0dad4237 (patch) | |
tree | 19011aaa6475f2b62bcd7eecb72f8469858c1215 /clients/vita/vita-uinput.c | |
parent | 528c882e97fea16d56e22e19b76fbf5e45895967 (diff) |
clients: Make host word size tunable compile-time
By default we assume 64bit host, compile with -DHOST_32BIT if your
server runs on 32bit machine. Other kind of setups are not supported,
but may work.
Diffstat (limited to 'clients/vita/vita-uinput.c')
-rw-r--r-- | clients/vita/vita-uinput.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/clients/vita/vita-uinput.c b/clients/vita/vita-uinput.c index 3a9b2f8..27632c2 100644 --- a/clients/vita/vita-uinput.c +++ b/clients/vita/vita-uinput.c @@ -81,11 +81,12 @@ struct uinput_user_dev { int32_t absflat[ABS_CNT]; }; -/** - * We are now expecting 64bit host, see the compatibility notes from uinputd.c - */ struct timeval { +#ifdef HOST_32BIT + uint32_t tv_sec, tv_usec; +#else uint64_t tv_sec, tv_usec; +#endif }; struct input_event { |