From 577ad2599c2c727318d84797b78306d86da89bf1 Mon Sep 17 00:00:00 2001
From: Alexander Alashkin <alexander.alashkin@cesanta.com>
Date: Wed, 18 Jan 2017 16:55:06 +0200
Subject: [PATCH] Enable additional services for stm32/cube

PUBLISHED_FROM=b22a136bc630b7cf4a62fd9d91b85e0e939a7f82
---
 mongoose.h | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/mongoose.h b/mongoose.h
index 65ac0c7e8..67a2f4f48 100644
--- a/mongoose.h
+++ b/mongoose.h
@@ -1534,21 +1534,29 @@ char* inet_ntoa(struct in_addr in);
 #if CS_PLATFORM == CS_P_STM32
 
 #include <sys/types.h>
+#include <sys/stat.h>
 #include <stdint.h>
 #include <inttypes.h>
 #include <stdio.h>
 #include <ctype.h>
 #include <errno.h>
 #include <memory.h>
+#include <fcntl.h>
 
 #define to64(x) strtoll(x, NULL, 10)
 #define INT64_FMT PRId64
 #define SIZE_T_FMT "u"
+typedef struct stat cs_stat_t;
+#define DIRSEP '/'
 
 #ifndef CS_ENABLE_STDIO
 #define CS_ENABLE_STDIO 1
 #endif
 
+#ifndef MG_ENABLE_FILESYSTEM
+#define MG_ENABLE_FILESYSTEM 1
+#endif
+
 #endif /* CS_PLATFORM == CS_P_STM32 */
 #endif /* CS_COMMON_PLATFORMS_PLATFORM_STM32_H_ */
 #ifdef MG_MODULE_LINES
-- 
GitLab