diff --git a/mongoose.h b/mongoose.h
index 5fb1975e4d3e715c45688e297785ff027c16bc11..1d50e7ad6063234dc75e0023731409f79b1a1cd0 100644
--- a/mongoose.h
+++ b/mongoose.h
@@ -352,6 +352,7 @@ typedef struct _stati64 cs_stat_t;
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <sys/param.h>
 #include <sys/socket.h>
 #include <sys/select.h>
 #include <sys/stat.h>