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
07389021
Commit
07389021
authored
Nov 03, 2010
by
valenok
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RTEMS fixes: removed mman.h include, and introduced NO_POPEN conditional
parent
bdb396cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
mongoose.c
mongoose.c
+6
-1
No files found.
mongoose.c
View file @
07389021
...
...
@@ -163,7 +163,6 @@ typedef struct DIR {
#include <sys/wait.h>
#include <sys/socket.h>
#include <sys/select.h>
#include <sys/mman.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/time.h>
...
...
@@ -174,7 +173,9 @@ typedef struct DIR {
#include <pwd.h>
#include <unistd.h>
#include <dirent.h>
#if !defined(NO_SSL_DL) && !defined(NO_SSL)
#include <dlfcn.h>
#endif
#include <pthread.h>
#if defined(__MACH__)
#define SSL_LIB "libssl.dylib"
...
...
@@ -3063,6 +3064,7 @@ static void do_ssi_include(struct mg_connection *conn, const char *ssi,
}
}
#if !defined(NO_POPEN)
static
void
do_ssi_exec
(
struct
mg_connection
*
conn
,
char
*
tag
)
{
char
cmd
[
BUFSIZ
];
FILE
*
fp
;
...
...
@@ -3076,6 +3078,7 @@ static void do_ssi_exec(struct mg_connection *conn, char *tag) {
(
void
)
pclose
(
fp
);
}
}
#endif // !NO_POPEN
static
void
send_ssi_file
(
struct
mg_connection
*
conn
,
const
char
*
path
,
FILE
*
fp
,
int
include_level
)
{
...
...
@@ -3102,8 +3105,10 @@ static void send_ssi_file(struct mg_connection *conn, const char *path,
}
else
{
if
(
!
memcmp
(
buf
+
5
,
"include"
,
7
))
{
do_ssi_include
(
conn
,
path
,
buf
+
12
,
include_level
);
#if !defined(NO_POPEN)
}
else
if
(
!
memcmp
(
buf
+
5
,
"exec"
,
4
))
{
do_ssi_exec
(
conn
,
buf
+
9
);
#endif // !NO_POPEN
}
else
{
cry
(
conn
,
"%s: unknown SSI "
"command:
\"
%s
\"
"
,
path
,
buf
);
}
...
...
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