Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongoose
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
esp
mongoose
Commits
5e3e6a6d
Commit
5e3e6a6d
authored
Sep 02, 2014
by
m.milanovic@levi9.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed compile on MINGW so it is confirmed working on versions 4.6.x till 4.9.x
parent
1388bb1d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
mongoose.c
mongoose.c
+7
-2
No files found.
mongoose.c
View file @
5e3e6a6d
...
@@ -1152,7 +1152,12 @@ void ns_server_free(struct ns_server *s) {
...
@@ -1152,7 +1152,12 @@ void ns_server_free(struct ns_server *s) {
#define STR(x) STRX(x)
#define STR(x) STRX(x)
#define __func__ __FILE__ ":" STR(__LINE__)
#define __func__ __FILE__ ":" STR(__LINE__)
#endif
#endif
#define INT64_FMT "I64d"
/* MINGW has adopted the MSVC formatting for 64-bit ints as of gcc 4.4 till 4.8*/
#if (defined(__MINGW32__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4 && __GNUC_MINOR__ < 8))) || defined(_MSC_VER)
#define INT64_FMT "I64d"
#else
#define INT64_FMT "lld"
#endif
#define stat(x, y) mg_stat((x), (y))
#define stat(x, y) mg_stat((x), (y))
#define fopen(x, y) mg_fopen((x), (y))
#define fopen(x, y) mg_fopen((x), (y))
#define open(x, y) mg_open((x), (y))
#define open(x, y) mg_open((x), (y))
...
@@ -2086,7 +2091,7 @@ static void open_cgi_endpoint(struct connection *conn, const char *prog) {
...
@@ -2086,7 +2091,7 @@ static void open_cgi_endpoint(struct connection *conn, const char *prog) {
}
while
(
fds
[
0
]
==
INVALID_SOCKET
);
}
while
(
fds
[
0
]
==
INVALID_SOCKET
);
if
(
start_process
(
conn
->
server
->
config_options
[
CGI_INTERPRETER
],
if
(
start_process
(
conn
->
server
->
config_options
[
CGI_INTERPRETER
],
prog
,
blk
.
buf
,
blk
.
vars
,
dir
,
fds
[
1
])
>
0
)
{
prog
,
blk
.
buf
,
blk
.
vars
,
dir
,
fds
[
1
])
!=
0
)
{
conn
->
endpoint_type
=
EP_CGI
;
conn
->
endpoint_type
=
EP_CGI
;
conn
->
endpoint
.
nc
=
ns_add_sock
(
&
conn
->
server
->
ns_server
,
fds
[
0
],
conn
);
conn
->
endpoint
.
nc
=
ns_add_sock
(
&
conn
->
server
->
ns_server
,
fds
[
0
],
conn
);
conn
->
endpoint
.
nc
->
flags
|=
MG_CGI_CONN
;
conn
->
endpoint
.
nc
->
flags
|=
MG_CGI_CONN
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment