mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-03 13:28:44 +00:00
build fixed
This commit is contained in:
1 parent
93cd77ffad
commit
ffe83051fe
2 files changed
+2
-2
No files matched your search
@@ -25,6 +25,7 @@
|
|||||||
#define _WIN32_WINNT 0x500 // Enable MIIM_BITMAP
|
#define _WIN32_WINNT 0x500 // Enable MIIM_BITMAP
|
||||||
#define _CRT_SECURE_NO_WARNINGS // Disable deprecation warning in VS2005
|
#define _CRT_SECURE_NO_WARNINGS // Disable deprecation warning in VS2005
|
||||||
#define _XOPEN_SOURCE 600 // For PATH_MAX on linux
|
#define _XOPEN_SOURCE 600 // For PATH_MAX on linux
|
||||||
|
#undef WIN32_LEAN_AND_MEAN // Let windows.h always include winsock2.h
|
||||||
|
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|||||||
+1
-2
@@ -2851,7 +2851,7 @@ static void call_request_handler_if_data_is_buffered(struct connection *conn) {
|
|||||||
} else
|
} else
|
||||||
#endif
|
#endif
|
||||||
if ((size_t) loc->len >= c->content_len &&
|
if ((size_t) loc->len >= c->content_len &&
|
||||||
call_request_handler(conn) == MG_REQUEST_NOT_PROCESSED) {
|
call_request_handler(conn) == MG_FALSE) {
|
||||||
open_local_endpoint(conn, 1);
|
open_local_endpoint(conn, 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -4354,7 +4354,6 @@ struct mg_connection *mg_connect(struct mg_server *server, const char *host,
|
|||||||
conn->mg_conn.server_param = server->ns_server.server_data;
|
conn->mg_conn.server_param = server->ns_server.server_data;
|
||||||
conn->birth_time = time(NULL);
|
conn->birth_time = time(NULL);
|
||||||
conn->ns_conn->flags = NSF_CONNECTING;
|
conn->ns_conn->flags = NSF_CONNECTING;
|
||||||
conn->mg_conn.status_code = MG_CONNECT_FAILURE;
|
|
||||||
|
|
||||||
return &conn->mg_conn;
|
return &conn->mg_conn;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user