summaryrefslogtreecommitdiff
path: root/thirdparty/lws
diff options
context:
space:
mode:
Diffstat (limited to 'thirdparty/lws')
-rw-r--r--thirdparty/lws/mbedtls_wrapper/include/platform/ssl_port.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/thirdparty/lws/mbedtls_wrapper/include/platform/ssl_port.h b/thirdparty/lws/mbedtls_wrapper/include/platform/ssl_port.h
index c4c266183c..fd461e9819 100644
--- a/thirdparty/lws/mbedtls_wrapper/include/platform/ssl_port.h
+++ b/thirdparty/lws/mbedtls_wrapper/include/platform/ssl_port.h
@@ -24,7 +24,12 @@
#include "esp_log.h"
*/
#include "string.h"
+
+#ifdef __APPLE__
+#include <stdlib.h>
+#else
#include "malloc.h"
+#endif
void *ssl_mem_zalloc(size_t size);