X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_api.c;h=8b80c4df33cd6f2e8fa7735ca5aef027387d4406;hp=42b382807491cb545b505feabb8a81f0e4897bf5;hb=9587eb641bdc4f67d95c89249d0c4adf67d97c18;hpb=1bb503ce9d88c7b8b3fd483d313fc6c6ab0bf454 diff --git a/http_api.c b/http_api.c index 42b3828..8b80c4d 100644 --- a/http_api.c +++ b/http_api.c @@ -435,7 +435,7 @@ static inline void _http_curl_setopts(CURL *ch, const char *url, HashTable *opti curl_easy_setopt(ch, CURLOPT_AUTOREFERER, 1); curl_easy_setopt(ch, CURLOPT_WRITEFUNCTION, http_curl_body_callback); curl_easy_setopt(ch, CURLOPT_HEADERFUNCTION, http_curl_hdrs_callback); -#ifdef ZTS +#if defined(ZTS) && (LIBCURL_VERSION_NUM >= 0x070a00) curl_easy_setopt(ch, CURLOPT_NOSIGNAL, 1); #endif