Skip to content

Commit

Permalink
Merge pull request wolfSSL#595 from wolfSSL/Espressif-test-update
Browse files Browse the repository at this point in the history
  • Loading branch information
ejohnstown authored Sep 30, 2023
2 parents 37cb96c + 9e3cebb commit e5f4b69
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions wolfssh/test.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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 */
Expand Down

0 comments on commit e5f4b69

Please sign in to comment.