Win changes

This commit is contained in:
Luca Deri 2020-03-20 09:50:36 +01:00
parent 3984a19226
commit 49c80c4615
10 changed files with 14 additions and 96 deletions

View file

@ -945,11 +945,7 @@ static int handle_lua_request(struct mg_connection *conn) {
|| (strcmp(request_info->uri, "/") == 0)) {
/* Lua Script */
char path[255] = { 0 }, uri[2048];
#ifdef WIN32
struct _stat64 buf;
#else
struct stat buf;
#endif
bool found;
if(strstr(request_info->uri, "/lua/pro")
@ -1047,11 +1043,7 @@ static int handle_http_message(const struct mg_connection *conn, const char *mes
/* ****************************************** */
bool HTTPserver::check_ssl_cert(char *ssl_cert_path, size_t ssl_cert_path_len) {
#ifdef WIN32
struct _stat64 s;
#else
struct stat s;
#endif
int stat_rc;
ssl_cert_path[0] = '\0';