From a0e202d828321f4af3356637065c4032b622bde1 Mon Sep 17 00:00:00 2001 From: valenok Date: Tue, 31 Aug 2010 00:12:16 +0100 Subject: [PATCH] fixed win32 build --- main.c | 2 ++ mongoose.c | 2 +- win32/dll.def | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index 4533a8b8..74b4346a 100644 --- a/main.c +++ b/main.c @@ -40,6 +40,8 @@ #ifdef _WIN32 #include #include +#define PATH_MAX MAX_PATH +#define S_ISDIR(x) ((x) & _S_IFDIR) #define DIRSEP '\\' #define snprintf _snprintf #if !defined(__LCC__) diff --git a/mongoose.c b/mongoose.c index 41b7ee3a..b10a0ece 100644 --- a/mongoose.c +++ b/mongoose.c @@ -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", diff --git a/win32/dll.def b/win32/dll.def index 98bb6e9b..afd53118 100644 --- a/win32/dll.def +++ b/win32/dll.def @@ -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