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
3721efe1
Commit
3721efe1
authored
Aug 11, 2014
by
Miodrag Milanovic
Committed by
m.milanovic@levi9.com
Aug 11, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make mongoose compile on mingw environment
parent
e0822ffb
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
9 deletions
+17
-9
Makefile
examples/Makefile
+12
-7
mongoose.c
mongoose.c
+5
-2
No files found.
examples/Makefile
View file @
3721efe1
...
...
@@ -11,6 +11,7 @@ NS = ../../net_skeleton
SW
=
../../ssl_wrapper
ifeq
($(OS),Windows_NT)
ifndef
MINGW
MSVC
=
../../vc6
RM
=
del /q /f
OUT
=
...
...
@@ -18,6 +19,10 @@ ifeq ($(OS),Windows_NT)
CFLAGS
=
/MD /TC /nologo /W3 /I
$(MSVC)
/include /I..
CFLAGS
+=
/link /incremental:no /libpath:
$(MSVC)
/lib /machine:IX86
CFLAGS
+=
$(CFLAGS_EXTRA)
else
CC
=
g++
CFLAGS
=
-W
-Wall
-Wno-unused-parameter
-I
..
-O0
-g
-pipe
$(CFLAGS_EXTRA)
-lwsock32
endif
else
UNAME_S
:=
$(
shell
uname
-s
)
CC
=
g++
...
...
mongoose.c
View file @
3721efe1
...
...
@@ -1807,8 +1807,8 @@ static void abs_path(const char *utf8_path, char *abs_path, size_t len) {
static
process_id_t
start_process
(
char
*
interp
,
const
char
*
cmd
,
const
char
*
env
,
const
char
*
envp
[],
const
char
*
dir
,
sock_t
sock
)
{
STARTUPINFOW
si
=
{
0
}
;
PROCESS_INFORMATION
pi
=
{
0
}
;
STARTUPINFOW
si
;
PROCESS_INFORMATION
pi
;
HANDLE
a
[
2
],
b
[
2
],
me
=
GetCurrentProcess
();
wchar_t
wcmd
[
MAX_PATH_SIZE
],
full_dir
[
MAX_PATH_SIZE
];
char
buf
[
MAX_PATH_SIZE
],
buf4
[
MAX_PATH_SIZE
],
buf5
[
MAX_PATH_SIZE
],
...
...
@@ -1816,6 +1816,9 @@ static process_id_t start_process(char *interp, const char *cmd,
DWORD
flags
=
DUPLICATE_CLOSE_SOURCE
|
DUPLICATE_SAME_ACCESS
;
FILE
*
fp
;
memset
(
&
si
,
0
,
sizeof
(
si
));
memset
(
&
pi
,
0
,
sizeof
(
pi
));
si
.
cb
=
sizeof
(
si
);
si
.
dwFlags
=
STARTF_USESTDHANDLES
|
STARTF_USESHOWWINDOW
;
si
.
wShowWindow
=
SW_HIDE
;
...
...
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