From 07a7d361fd1a56784f531cdb5b5dbeff0dad4237 Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Wed, 4 Jul 2018 23:30:48 +0300 Subject: 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. --- clients/vita/vita-uinput.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'clients/vita/vita-uinput.c') 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 { -- cgit v1.2.3