mirror of
https://github.com/curl/curl.git
synced 2026-08-24 20:53:54 +03:00
add a global macro
This commit is contained in:
parent
a41a9bfbed
commit
2d57c49d92
3 changed files with 10 additions and 5 deletions
|
|
@ -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)
|
||||
{
|
||||
#if defined(TCP_NODELAY) && !defined(__EMSCRIPTEN__)
|
||||
#if defined(TCP_NODELAY) && defined(CURL_TCP_NODELAY_SUPPORTED)
|
||||
curl_socklen_t onoff = (curl_socklen_t) 1;
|
||||
int level = IPPROTO_TCP;
|
||||
char buffer[STRERROR_LEN];
|
||||
|
|
|
|||
|
|
@ -1125,6 +1125,11 @@ int getpwuid_r(uid_t uid, struct passwd *pwd, char *buf,
|
|||
#define USE_HTTP3
|
||||
#endif
|
||||
|
||||
/* WebAssembly builds have TCP_NODELAY, but runtime support is missing. */
|
||||
#ifndef __EMSCRIPTEN__
|
||||
#define CURL_TCP_NODELAY_SUPPORTED
|
||||
#endif
|
||||
|
||||
/* Certain Windows implementations are not aligned with what curl expects,
|
||||
so always use the local one on this platform. E.g. the mingw-w64
|
||||
implementation can return wrong results for non-ASCII inputs. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue