diff --git a/mongoose.h b/mongoose.h
index bd634370c2f0f5c381958427a52f23ed591c5910..7d5431eb749174f9f95fefa19744033443f0f46d 100644
--- a/mongoose.h
+++ b/mongoose.h
@@ -1531,6 +1531,7 @@ char* inet_ntoa(struct in_addr in);
 #include <errno.h>
 #include <memory.h>
 #include <fcntl.h>
+#include <stm32_sdk_hal.h>
 
 #define to64(x) strtoll(x, NULL, 10)
 #define INT64_FMT PRId64