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
3298030b
Commit
3298030b
authored
9 years ago
by
Deomid Ryabkov
Committed by
rojer
9 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changes to make Mongoose compile on ESP RTOS SDK
PUBLISHED_FROM=863a47416ee5e30f20f6523374ebd510cc022d99
parent
6cfc6964
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
7 deletions
+10
-7
mongoose.c
mongoose.c
+1
-3
mongoose.h
mongoose.h
+9
-4
No files found.
mongoose.c
View file @
3298030b
...
...
@@ -1551,9 +1551,7 @@ void cs_hmac_sha1(const unsigned char *key, size_t keylen,
/* Amalgamated: #include "osdep.h" */
/* Amalgamated: #include "str_util.h" */
#if !(_XOPEN_SOURCE >= 700 || _POSIX_C_SOURCE >= 200809L) && \
!(__DARWIN_C_LEVEL >= 200809L) && !defined(RTOS_SDK) || \
defined(_WIN32)
#ifdef _MG_PROVIDE_STRNLEN
size_t
strnlen
(
const
char
*
s
,
size_t
maxlen
)
{
size_t
l
=
0
;
for
(;
l
<
maxlen
&&
s
[
l
]
!=
'\0'
;
l
++
)
{
...
...
This diff is collapsed.
Click to expand it.
mongoose.h
View file @
3298030b
...
...
@@ -105,7 +105,6 @@
#include <assert.h>
#include <ctype.h>
#include <errno.h>
#include <limits.h>
#include <stdarg.h>
#include <stddef.h>
...
...
@@ -234,8 +233,11 @@ struct dirent *readdir(DIR *dir);
#include <sys/select.h>
#endif
#ifndef
_WIN32
#ifndef
LWIP_PROVIDE_ERRNO
#include <errno.h>
#endif
#ifndef _WIN32
#include <inttypes.h>
#include <stdarg.h>
...
...
@@ -519,9 +521,12 @@ extern "C" {
int
c_snprintf
(
char
*
buf
,
size_t
buf_size
,
const
char
*
format
,
...);
int
c_vsnprintf
(
char
*
buf
,
size_t
buf_size
,
const
char
*
format
,
va_list
ap
);
#if !(_XOPEN_SOURCE >= 700 || _POSIX_C_SOURCE >= 200809L) && \
!(__DARWIN_C_LEVEL >= 200809L) && !defined(RTOS_SDK) || \
#if (!(defined(_XOPEN_SOURCE) && _XOPEN_SOURCE >= 700) && \
!(defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 200809L) && \
!(defined(__DARWIN_C_LEVEL) && __DARWIN_C_LEVEL >= 200809L) && \
!defined(RTOS_SDK)) || \
defined(_WIN32)
#define _MG_PROVIDE_STRNLEN
size_t
strnlen
(
const
char
*
s
,
size_t
maxlen
);
#endif
...
...
This diff is collapsed.
Click to expand it.
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