Merge pull request #595 from wolfSSL/Espressif-test-update

pull/593/head
John Safranek 2023-09-29 20:35:29 -07:00 committed by GitHub
commit e5f4b692fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions

View File

@ -136,6 +136,14 @@
#endif
#define SOCKET_T int
#define NUM_SOCKETS 5
#elif defined(WOLFSSL_ESPIDF)
#include "sdkconfig.h"
#include <esp_idf_version.h>
#include <esp_log.h>
#include <lwip/sockets.h>
#include <lwip/netdb.h>
#define SOCKET_T int
#define NUM_SOCKETS 5
#else /* USE_WINDOWS_API */
#include <unistd.h>
#include <sys/socket.h>
@ -520,6 +528,8 @@ static INLINE void tcp_socket(WS_SOCKET_T* sockFd)
/* not full signal implementation */
#elif defined(WOLFSSL_NUCLEUS)
/* nothing to define */
#elif defined(WOLFSSL_ESPIDF)
/* nothing to define */
#else /* no S_NOSIGPIPE */
signal(SIGPIPE, SIG_IGN);
#endif /* S_NOSIGPIPE */