Commit a0e202d8 authored by valenok's avatar valenok

fixed win32 build

parent 001889bd
...@@ -40,6 +40,8 @@ ...@@ -40,6 +40,8 @@
#ifdef _WIN32 #ifdef _WIN32
#include <windows.h> #include <windows.h>
#include <winsvc.h> #include <winsvc.h>
#define PATH_MAX MAX_PATH
#define S_ISDIR(x) ((x) & _S_IFDIR)
#define DIRSEP '\\' #define DIRSEP '\\'
#define snprintf _snprintf #define snprintf _snprintf
#if !defined(__LCC__) #if !defined(__LCC__)
......
...@@ -1066,7 +1066,7 @@ static pid_t spawn_process(struct mg_connection *conn, const char *prog, ...@@ -1066,7 +1066,7 @@ static pid_t spawn_process(struct mg_connection *conn, const char *prog,
&si.hStdOutput, 0, TRUE, DUPLICATE_SAME_ACCESS); &si.hStdOutput, 0, TRUE, DUPLICATE_SAME_ACCESS);
// If CGI file is a script, try to read the interpreter line // If CGI file is a script, try to read the interpreter line
interp = conn->ctx->config->cgi_interpreter; interp = conn->ctx->config[CGI_INTERPRETER];
if (interp == NULL) { if (interp == NULL) {
line[2] = '\0'; line[2] = '\0';
(void) mg_snprintf(conn, cmdline, sizeof(cmdline), "%s%c%s", (void) mg_snprintf(conn, cmdline, sizeof(cmdline), "%s%c%s",
......
...@@ -7,8 +7,9 @@ EXPORTS ...@@ -7,8 +7,9 @@ EXPORTS
mg_printf mg_printf
mg_get_header mg_get_header
mg_get_var mg_get_var
mg_get_qsvar
mg_get_cookie mg_get_cookie
mg_get_option
mg_get_valid_option_names
mg_version mg_version
mg_modify_passwords_file mg_modify_passwords_file
mg_md5 mg_md5
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