Make backend build under win32, MSVC98

PUBLISHED_FROM=961e25e133eff8ee168557f186713d5babbd0c5f
This commit is contained in:
Sergey Lyubka 2016-10-24 22:25:53 +01:00 committed by Cesanta Bot
parent 8d72c2a7b2
commit 7f99013179

View File

@ -1744,11 +1744,11 @@ const char *c_strnstr(const char *s, const char *find, size_t slen) {
* license, as set out in <https://www.cesanta.com/license>.
*/
/* Amalgamated: #include "mongoose/src/internal.h" */
/* Amalgamated: #include "mongoose/src/util.h" */
/* Amalgamated: #include "mongoose/src/dns.h" */
/* Amalgamated: #include "mongoose/src/resolv.h" */
/* Amalgamated: #include "common/cs_time.h" */
/* Amalgamated: #include "mongoose/src/dns.h" */
/* Amalgamated: #include "mongoose/src/internal.h" */
/* Amalgamated: #include "mongoose/src/resolv.h" */
/* Amalgamated: #include "mongoose/src/util.h" */
#define MG_MAX_HOST_LEN 200
@ -2143,6 +2143,10 @@ MG_INTERNAL int mg_parse_address(const char *str, union socket_address *sa,
return -1;
}
/* Required for MG_ENABLE_ASYNC_RESOLVER=0 */
(void) host;
(void) host_len;
ch = str[len]; /* Character that follows the address */
return port < 0xffffUL && (ch == '\0' || ch == ',' || isspace(ch)) ? len : -1;
}