mirror of https://github.com/wolfSSL/wolfssh.git
Add check if building echoserver to test.h so the static functions aren't included when building not-inline.
parent
fb28cdab48
commit
2e92d9c1ee
|
@ -19,6 +19,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define WOLFSSH_TEST_SERVER
|
#define WOLFSSH_TEST_SERVER
|
||||||
|
#define WOLFSSH_TEST_ECHOSERVER
|
||||||
|
|
||||||
|
|
||||||
#ifdef WOLFSSL_USER_SETTINGS
|
#ifdef WOLFSSL_USER_SETTINGS
|
||||||
|
|
|
@ -539,6 +539,10 @@ static INLINE void tcp_listen(SOCKET_T* sockfd, word16* port, int useAnyAddr)
|
||||||
|
|
||||||
#endif /* WOLFSSH_TEST_SERVER */
|
#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)
|
static INLINE void tcp_set_nonblocking(SOCKET_T* sockfd)
|
||||||
{
|
{
|
||||||
#ifdef USE_WINDOWS_API
|
#ifdef USE_WINDOWS_API
|
||||||
|
@ -594,6 +598,8 @@ static INLINE int tcp_select(SOCKET_T socketfd, int to_sec)
|
||||||
return WS_SELECT_FAIL;
|
return WS_SELECT_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif /* WOLFSSH_TEST_SERVER || WOLFSSH_TEST_CLIENT */
|
||||||
|
|
||||||
|
|
||||||
/* Wolf Root Directory Helper */
|
/* Wolf Root Directory Helper */
|
||||||
/* KEIL-RL File System does not support relative directory */
|
/* KEIL-RL File System does not support relative directory */
|
||||||
|
|
Loading…
Reference in New Issue