Skip to content
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 src/io.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ void* wolfSSH_GetIOWriteCtx(WOLFSSH* ssh)
#include <errno.h>
#elif defined(WOLFSSH_ZEPHYR)
#include <zephyr/net/socket.h>
#include <zephyr/version.h>
#else
#include <sys/types.h>
#include <errno.h>
Expand Down Expand Up @@ -258,6 +259,15 @@ void* wolfSSH_GetIOWriteCtx(WOLFSSH* ssh)
#elif defined(WOLFSSL_NUCLEUS)
#define SEND_FUNCTION NU_Send
#define RECV_FUNCTION NU_Recv
#elif defined(WOLFSSH_ZEPHYR)
#if KERNEL_VERSION_NUMBER >= 0x40100
/* Zephyr 4.1 dropped the POSIX socket names; zsock_ is always there. */
#define SEND_FUNCTION zsock_send
#define RECV_FUNCTION zsock_recv
#else
#define SEND_FUNCTION send
#define RECV_FUNCTION recv
#endif
#else
#define SEND_FUNCTION send
#define RECV_FUNCTION recv
Expand Down
Loading