Index: lib/mappedfile.h
--- lib/mappedfile.h.orig
+++ lib/mappedfile.h
@@ -7,6 +7,7 @@
 
 // includes
 #include "buf.h"
+#include <sys/time.h> /* timeval */
 #include <sys/types.h>
 #include <sys/uio.h>
 
