diff --git a/mongoose.h b/mongoose.h
index 5112294f62825edd9b5a9659fb9c851d6f20504e..bfdba362bd13270ae57a3e409e2eba87001981df 100644
--- a/mongoose.h
+++ b/mongoose.h
@@ -1085,6 +1085,7 @@ int gettimeofday(struct timeval *tp, void *tzp);
 #include <ctype.h>
 #include <errno.h>
 #include <inttypes.h>
+#include <stdbool.h>
 #include <stdint.h>
 #include <string.h>
 #include <time.h>