Commit 7f990131 authored by Sergey Lyubka's avatar Sergey Lyubka Committed by Cesanta Bot

Make backend build under win32, MSVC98

PUBLISHED_FROM=961e25e133eff8ee168557f186713d5babbd0c5f
parent 8d72c2a7
......@@ -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 "common/cs_time.h" */
/* Amalgamated: #include "mongoose/src/dns.h" */
/* Amalgamated: #include "mongoose/src/internal.h" */
/* Amalgamated: #include "mongoose/src/resolv.h" */
/* Amalgamated: #include "common/cs_time.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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment