mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
mbedtls wrapper: check for malloc.h before using
https://github.com/warmcat/libwebsockets/issues/1163
This commit is contained in:
parent
a8a484eb53
commit
1b43ed1cba
3 changed files with 6 additions and 4 deletions
|
@ -574,6 +574,7 @@ CHECK_INCLUDE_FILE(sys/types.h LWS_HAVE_SYS_TYPES_H)
|
|||
CHECK_INCLUDE_FILE(unistd.h LWS_HAVE_UNISTD_H)
|
||||
CHECK_INCLUDE_FILE(vfork.h LWS_HAVE_VFORK_H)
|
||||
CHECK_INCLUDE_FILE(sys/capability.h LWS_HAVE_SYS_CAPABILITY_H)
|
||||
CHECK_INCLUDE_FILE(malloc.h LWS_HAVE_MALLOC_H)
|
||||
|
||||
CHECK_LIBRARY_EXISTS(cap cap_set_flag "" LWS_HAVE_LIBCAP)
|
||||
|
||||
|
|
|
@ -150,6 +150,8 @@
|
|||
#cmakedefine LWS_WITH_ACME
|
||||
#cmakedefine LWS_WITH_SELFTESTS
|
||||
|
||||
#cmakedefine LWS_HAVE_MALLOC_H
|
||||
|
||||
/* OpenSSL various APIs */
|
||||
|
||||
#cmakedefine LWS_HAVE_TLS_CLIENT_METHOD
|
||||
|
|
|
@ -19,12 +19,11 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
#include "esp_types.h"
|
||||
#include "esp_log.h"
|
||||
*/
|
||||
#include "string.h"
|
||||
#include "stdlib.h"
|
||||
#if defined(LWS_HAVE_MALLOC_H)
|
||||
#include "malloc.h"
|
||||
#endif
|
||||
|
||||
void *ssl_mem_zalloc(size_t size);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue