diff options
| author | goldsimon <[email protected]> | 2018-02-18 08:56:57 +0100 |
|---|---|---|
| committer | goldsimon <[email protected]> | 2018-02-18 08:56:57 +0100 |
| commit | ca0a3562211206cb229bdafea2dcec317e683309 (patch) | |
| tree | aa94f2d6baf8a8901dff1197cb69e4110178b8cb /test | |
| parent | e6f0700c81fefbccd8a91da2c53faa2c7731449c (diff) | |
sockets_stresstest: don't compile when LWIP_SOCKET is disabled
Diffstat (limited to 'test')
| -rw-r--r-- | test/sockets/sockets_stresstest.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/sockets/sockets_stresstest.c b/test/sockets/sockets_stresstest.c index 6cf43d89..e9253aab 100644 --- a/test/sockets/sockets_stresstest.c +++ b/test/sockets/sockets_stresstest.c @@ -60,6 +60,8 @@ #include <stdio.h> #include <string.h> +#if LWIP_SOCKET + #ifndef TEST_SOCKETS_STRESS #define TEST_SOCKETS_STRESS LWIP_DBG_OFF #endif @@ -607,3 +609,5 @@ sockets_stresstest_init_client(const char *remote_ip, u16_t remote_port) ((struct sockaddr_in *)addr)->sin_port = remote_port; sockets_stresstest_start_clients(addr); } + +#endif /* LWIP_SOCKET */ |
