diff options
author | Thomas Guillem <thomas@gllm.fr> | 2022-04-05 16:00:37 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2022-06-07 13:34:03 +0200 |
commit | 2ed101256414ea5274e85e6f3d4c011b46442ac4 (patch) | |
tree | 361cc3fa90bd161cabba72fad9bdc8b1771954bf /lib/version.c | |
parent | 23af112f5556d6a785c17e09f2422ac931405f61 (diff) | |
download | curl-2ed101256414ea5274e85e6f3d4c011b46442ac4.tar.gz |
curl_version_info: add CURL_VERSION_THREADSAFE_INIT
This flag can be used to make sure that curl_global_init() is
thread-safe.
This can be useful for libraries that can't control what other
dependencies are doing with Curl.
Closes #8680
Diffstat (limited to 'lib/version.c')
-rw-r--r-- | lib/version.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/version.c b/lib/version.c index e37253df2..eb1bcb3a7 100644 --- a/lib/version.c +++ b/lib/version.c @@ -29,6 +29,7 @@ #include "vssh/ssh.h" #include "quic.h" #include "curl_printf.h" +#include "easy_lock.h" #ifdef USE_ARES # if defined(CURL_STATICLIB) && !defined(CARES_STATICLIB) && \ @@ -451,6 +452,9 @@ static curl_version_info_data version_info = { #if defined(USE_GSASL) | CURL_VERSION_GSASL #endif +#if defined(GLOBAL_INIT_IS_THREADSAFE) + | CURL_VERSION_THREADSAFE_INIT +#endif , NULL, /* ssl_version */ 0, /* ssl_version_num, this is kept at zero */ |