Add check if building echoserver to test.h so the static functions aren't included when building not-inline.

pull/130/head
John Safranek 2018-12-14 13:58:47 -08:00
parent fb28cdab48
commit 2e92d9c1ee
2 changed files with 7 additions and 0 deletions

View File

@ -19,6 +19,7 @@
*/
#define WOLFSSH_TEST_SERVER
#define WOLFSSH_TEST_ECHOSERVER
#ifdef WOLFSSL_USER_SETTINGS

View File

@ -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 */