]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
sws: fix unused static function with `TCP_NODELAY` undefined
authorViktor Szakats <commit@vsz.me>
Sun, 6 Oct 2024 09:37:38 +0000 (11:37 +0200)
committerViktor Szakats <commit@vsz.me>
Mon, 7 Oct 2024 10:31:21 +0000 (12:31 +0200)
Closes #15171

tests/server/sws.c

index 86fba1c4d9ddbe850b6a1d3210f333c9ab1a7b1c..cdc94fe19e7003d2118561c88ad0903ea0fb6c1d 100644 (file)
@@ -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)