Re: Patch for http-fetch.c and older curl releases
On Tue, Sep 19, 2006 at 10:31:12AM +0200, Johannes Schindelin wrote:
Show 17 quoted lines
> Hi,
>
> On Mon, 18 Sep 2006, Art Haas wrote:
>
> > +#if LIBCURL_VERSION_NUM < 0x070f05
> > +#define CURLE_HTTP_RETURNED_ERROR CURLE_HTTP_NOT_FOUND
> > +#endif
>
> If you go to
>
> http://cool.haxx.se/cvs.cgi/curl/include/curl/curl.h?annotate=1.308
>
> and search for HTTP_RETURNED_ERROR, it shows that revision "badger_1.180"
> introduced it, which you can verify by clicking on the link to the diff.
> This diff also says that the LIBCURL_VERSION_NUM (which is changed just
> after a release in the curl project) is 0x70a03. Thus, you should check
> for 0x70a03 instead of 0x70f05.
Hi.
Here's a patch that checks for that version of libcurl.
Signed-off-by: Art Haas <ahaas@airmail.net>
diff --git a/http.h b/http.h
index 9ca16ac..6e12e41 100644
--- a/http.h
+++ b/http.h
@@ -22,6 +22,10 @@ #if LIBCURL_VERSION_NUM < 0x070c04
#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;
--
Man once surrendering his reason, has no remaining guard against absurdities
the most monstrous, and like a ship without rudder, is the sport of every wind.
-Thomas Jefferson to James Smith, 1822