Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add WOLFSSL_ESPIDF Espressif sections in test.h #595

Merged
merged 1 commit into from
Sep 30, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading