diff -Naur gpm-1.20.6.orig/src/headers/daemon.h gpm-1.20.6/src/headers/daemon.h
--- gpm-1.20.6.orig/src/headers/daemon.h	2009-02-09 09:58:53.000000000 +0000
+++ gpm-1.20.6/src/headers/daemon.h	2012-01-13 17:37:54.000000000 +0000
@@ -26,6 +26,7 @@
  */
 #include "gpm.h"           /* Gpm_Event         */
 #include <sys/select.h>    /* fd_set            */
+#include <time.h>
 
 /*************************************************************************
  * Types / structures
