--- a/lib/fsplib/fsplib.h
+++ b/lib/fsplib/fsplib.h
@@ -3,6 +3,7 @@
 #include <time.h>
 #include <dirent.h>
 #include <sys/stat.h>
+#include <sys/param.h>
 #include <stddef.h>
 
 /* The FSP v2 protocol support library - public interface */
