From: Viktor Szakats Date: Sun, 6 Oct 2024 09:37:38 +0000 (+0200) Subject: sws: fix unused static function with `TCP_NODELAY` undefined X-Git-Tag: curl-8_11_0~220 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6cfb615e922eb7c1d4cb6104d701c44802c8ed10;p=thirdparty%2Fcurl.git sws: fix unused static function with `TCP_NODELAY` undefined Closes #15171 --- diff --git a/tests/server/sws.c b/tests/server/sws.c index 86fba1c4d9..cdc94fe19e 100644 --- a/tests/server/sws.c +++ b/tests/server/sws.c @@ -221,6 +221,7 @@ static const char *doc404 = "HTTP/1.1 404 Not Found\r\n" /* work around for handling trailing headers */ static int already_recv_zeroed_chunk = FALSE; +#ifdef TCP_NODELAY /* returns true if the current socket is an IP one */ static bool socket_domain_is_ip(void) { @@ -235,6 +236,7 @@ static bool socket_domain_is_ip(void) return false; } } +#endif /* parse the file on disk that might have a test number for us */ static int parse_cmdfile(struct httprequest *req)