Index: manymouse/x11_xinput2.c
--- manymouse/x11_xinput2.c.orig
+++ manymouse/x11_xinput2.c
@@ -7,6 +7,8 @@
  *  This file written by Ryan C. Gordon.
  */
 
+#include <sys/select.h> /* timeval */
+
 #include "manymouse.h"
 /* Try to use this on everything but Windows and Mac OS by default... */
 #ifndef SUPPORT_XINPUT2
