@matheusbsbs / matheus-bagliano / commits / 500ebb0196
Fork 0

Work around http-fetch built with cURL 7.16.0

It appears that curl_easy_duphandle() from libcurl 7.16.0 returns a curl session handle which fails GOOD_MULTI_HANDLE() check in curl_multi_add_handle(). This causes fetch_ref() to fail because start_active_slot() cannot start the request. For now, check for 7.16.0 to work this issue around. Signed-off-by: Junio C Hamano <junkio@cox.net>

Junio C Hamano committed Dec 27, 2006 at 13:59 UTC 500ebb0196e3b14183171b8c492b3f5f9fa0bf02
1 file changed +1 -1
http.h
+1 -1
@@ -18,7 +18,7 @@
18 #define curl_global_init(a) do { /* nothing */ } while(0)
19 #endif
20
21 -#if LIBCURL_VERSION_NUM < 0x070c04
21 +#if (LIBCURL_VERSION_NUM < 0x070c04) || (LIBCURL_VERSION_NUM == 0x071000)
22 #define NO_CURL_EASY_DUPHANDLE
23 #endif
24