diff --git a/examples/echoserver/echoserver.c b/examples/echoserver/echoserver.c index b1822a1..5a1c380 100644 --- a/examples/echoserver/echoserver.c +++ b/examples/echoserver/echoserver.c @@ -19,6 +19,7 @@ */ #define WOLFSSH_TEST_SERVER +#define WOLFSSH_TEST_ECHOSERVER #ifdef WOLFSSL_USER_SETTINGS diff --git a/wolfssh/test.h b/wolfssh/test.h index 1f7a8f3..b0708d0 100644 --- a/wolfssh/test.h +++ b/wolfssh/test.h @@ -539,6 +539,10 @@ static INLINE void tcp_listen(SOCKET_T* sockfd, word16* port, int useAnyAddr) #endif /* WOLFSSH_TEST_SERVER */ + +#if (defined(WOLFSSH_TEST_SERVER) || defined(WOLFSSH_TEST_CLIENT)) && \ + !defined(WOLFSSH_TEST_ECHOSERVER) + static INLINE void tcp_set_nonblocking(SOCKET_T* sockfd) { #ifdef USE_WINDOWS_API @@ -594,6 +598,8 @@ static INLINE int tcp_select(SOCKET_T socketfd, int to_sec) return WS_SELECT_FAIL; } +#endif /* WOLFSSH_TEST_SERVER || WOLFSSH_TEST_CLIENT */ + /* Wolf Root Directory Helper */ /* KEIL-RL File System does not support relative directory */