From ca0a3562211206cb229bdafea2dcec317e683309 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Sun, 18 Feb 2018 08:56:57 +0100 Subject: [PATCH] sockets_stresstest: don't compile when LWIP_SOCKET is disabled --- test/sockets/sockets_stresstest.c | 4 ++++ 1 file changed, 4 insertions(+) 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 #include +#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 */