diff options
author | Daniel Stenberg <daniel@haxx.se> | 2020-01-26 17:51:01 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-01-28 08:03:22 +0100 |
commit | 0b030a5b232bd9fc4fed90f0d1aaac69c189aa22 (patch) | |
tree | 0ca314f27beda02318a970993b0e3e9cd1ebcd8d /lib/hostip.h | |
parent | 872ea75acfe3405f1d3b18a07d70696c3d63a100 (diff) |
global_init: move the IPv6 works status bool to multi handle
Previously it was stored in a global state which contributed to
curl_global_init's thread unsafety. This boolean is now instead figured
out in curl_multi_init() and stored in the multi handle. Less effective,
but thread safe.
Closes #4851
Diffstat (limited to 'lib/hostip.h')
-rw-r--r-- | lib/hostip.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/hostip.h b/lib/hostip.h index e0597ea96..a1c343ad7 100644 --- a/lib/hostip.h +++ b/lib/hostip.h @@ -7,7 +7,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2019, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -96,9 +96,9 @@ int Curl_resolv_timeout(struct connectdata *conn, const char *hostname, /* * Curl_ipv6works() returns TRUE if IPv6 seems to work. */ -bool Curl_ipv6works(void); +bool Curl_ipv6works(struct connectdata *conn); #else -#define Curl_ipv6works() FALSE +#define Curl_ipv6works(x) FALSE #endif /* |