util-time: include linux/input.h

struct timeval isn't defined in time.h, at least not on musl. And since we
need that value for struct input_events, let's include the header for that
struct. That'll sort out the includes for free.

Fixes #371

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2019-10-05 07:10:43 +10:00
parent 779ce028c3
commit f37a712ca2

View file

@ -28,6 +28,7 @@
#include <time.h>
#include <stdint.h>
#include <unistd.h>
#include <linux/input.h>
static inline void
msleep(unsigned int ms)