Index: src/lzfse_main.c
--- src/lzfse_main.c.orig	2017-02-12 17:39:36.000000000 +0100
+++ src/lzfse_main.c	2017-02-12 17:41:20.851733000 +0100
@@ -45,6 +45,10 @@
 #include <string.h>
 #include <sys/stat.h>
 #include <sys/types.h>
+#ifdef __FreeBSD__
+#define __XSI_VISIBLE 1
+#endif
+#include <sys/time.h>
 
 #if defined(_MSC_VER)
 #  include <io.h>
