X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=http.h;h=69b6b667d956933eca7153b51867493d7271df0b;hb=444649e5a833c6ed24e0e92364923324d9ffb386;hp=9ca16acec25e3925c36bbade09b2cb7b4aa07842;hpb=7941602983f68e2cddafca5a2da8215d1271742b;p=git.git diff --git a/http.h b/http.h index 9ca16acec..69b6b667d 100644 --- a/http.h +++ b/http.h @@ -6,7 +6,7 @@ #include #include -#if LIBCURL_VERSION_NUM >= 0x070908 +#if LIBCURL_VERSION_NUM >= 0x071000 #define USE_CURL_MULTI #define DEFAULT_MAX_REQUESTS 5 #endif @@ -18,10 +18,14 @@ #define curl_global_init(a) do { /* nothing */ } while(0) #endif -#if LIBCURL_VERSION_NUM < 0x070c04 +#if (LIBCURL_VERSION_NUM < 0x070c04) || (LIBCURL_VERSION_NUM == 0x071000) #define NO_CURL_EASY_DUPHANDLE #endif +#if LIBCURL_VERSION_NUM < 0x070a03 +#define CURLE_HTTP_RETURNED_ERROR CURLE_HTTP_NOT_FOUND +#endif + struct slot_results { CURLcode curl_result;