util-time: include linux/input.h
authorPeter Hutterer <peter.hutterer@who-t.net>
Fri, 4 Oct 2019 21:10:43 +0000 (07:10 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Fri, 4 Oct 2019 21:14:25 +0000 (07:14 +1000)
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>
src/util-time.h

index 71dc81fd9e5d91aeb5ead1b59f387af8367d9289..e8d3e41d9669de8e79bcb3694724fa23b7b77753 100644 (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)