From 02499d672b0eef48c784bd6533f1a24aa1c715b2 Mon Sep 17 00:00:00 2001 From: Alexander Alashkin <alexander.alashkin@cesanta.com> Date: Thu, 15 Dec 2016 16:00:29 +0200 Subject: [PATCH] Build c_mqtt/stm32 - part 1, with stubs PUBLISHED_FROM=de4b9f3e9eeafa75bb8919abacd86fb23fdefc1b --- mongoose.c | 2 ++ mongoose.h | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/mongoose.c b/mongoose.c index 0faee4ddb..f706ce33c 100644 --- a/mongoose.c +++ b/mongoose.c @@ -548,6 +548,8 @@ int cs_base64_decode(const unsigned char *s, int len, char *dst, int *dec_len) { #ifndef CS_COMMON_CS_DIRENT_H_ #define CS_COMMON_CS_DIRENT_H_ +/* Amalgamated: #include "common/platform.h" */ + #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ diff --git a/mongoose.h b/mongoose.h index e92e2ce3b..ca38c7d27 100644 --- a/mongoose.h +++ b/mongoose.h @@ -933,9 +933,12 @@ typedef struct stat cs_stat_t; #include <string.h> #include <time.h> #include <sys/stat.h> +#include <sys/types.h> +#include <fcntl.h> #include <stdio.h> typedef struct stat cs_stat_t; +#define DIRSEP '/' #ifndef CS_ENABLE_STDIO #define CS_ENABLE_STDIO 1 @@ -979,6 +982,8 @@ typedef int sock_t; const char *inet_ntop(int af, const void *src, char *dst, socklen_t size); char *inet_ntoa(struct in_addr in); int inet_pton(int af, const char *src, void *dst); +int inet_aton(const char *cp, struct in_addr *inp); +in_addr_t inet_addr(const char *cp); #endif /* MG_NET_IF == MG_NET_IF_SIMPLELINK */ -- GitLab