diff -rupN old/src/libinput-util.h new/src/libinput-util.h
--- old/src/libinput-util.h	2018-05-17 10:21:29.000000000 +0800
+++ new/src/libinput-util.h	2020-11-14 15:18:10.475775841 +0800
@@ -38,6 +38,7 @@
 #include <stdio.h>
 #include <string.h>
 #include <time.h>
+#include <sys/time.h>
 #include <unistd.h>
 
 #include "libinput.h"
