build: disable TCP_NODELAY for emscripten

This commit is contained in:
Viktor Szakats 2025-08-03 23:48:53 +02:00
parent 38672f2eaf
commit a41a9bfbed
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
3 changed files with 6 additions and 6 deletions

View file

@ -109,7 +109,7 @@ static void set_ipv6_v6only(curl_socket_t sockfd, int on)
static void tcpnodelay(struct Curl_easy *data, curl_socket_t sockfd)
{
#ifdef TCP_NODELAY
#if defined(TCP_NODELAY) && !defined(__EMSCRIPTEN__)
curl_socklen_t onoff = (curl_socklen_t) 1;
int level = IPPROTO_TCP;
char buffer[STRERROR_LEN];