diff --git a/mongoose.c b/mongoose.c
index 0faee4ddbbeccb166a3873bca34efa6d75151a2c..f706ce33cb58851cabccfdd81ec21a1644bc8356 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 e92e2ce3b1d37c92d8d23a25d3712530e3b7881f..ca38c7d272d83bc15376dd8d1d9d7de9cde39eb6 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 */