mirror of
https://github.com/cesanta/mongoose.git
synced 2025-08-06 13:37:34 +08:00
fixed win32 build
This commit is contained in:
parent
001889bd56
commit
a0e202d828
2
main.c
2
main.c
@ -40,6 +40,8 @@
|
||||
#ifdef _WIN32
|
||||
#include <windows.h>
|
||||
#include <winsvc.h>
|
||||
#define PATH_MAX MAX_PATH
|
||||
#define S_ISDIR(x) ((x) & _S_IFDIR)
|
||||
#define DIRSEP '\\'
|
||||
#define snprintf _snprintf
|
||||
#if !defined(__LCC__)
|
||||
|
@ -1066,7 +1066,7 @@ static pid_t spawn_process(struct mg_connection *conn, const char *prog,
|
||||
&si.hStdOutput, 0, TRUE, DUPLICATE_SAME_ACCESS);
|
||||
|
||||
// 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) {
|
||||
line[2] = '\0';
|
||||
(void) mg_snprintf(conn, cmdline, sizeof(cmdline), "%s%c%s",
|
||||
|
@ -7,8 +7,9 @@ EXPORTS
|
||||
mg_printf
|
||||
mg_get_header
|
||||
mg_get_var
|
||||
mg_get_qsvar
|
||||
mg_get_cookie
|
||||
mg_get_option
|
||||
mg_get_valid_option_names
|
||||
mg_version
|
||||
mg_modify_passwords_file
|
||||
mg_md5
|
||||
|
Loading…
Reference in New Issue
Block a user