author | Art Haas <ahaas@airmail.net> | |
Tue, 19 Sep 2006 12:20:19 +0000 (07:20 -0500) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 20 Sep 2006 14:53:43 +0000 (07:53 -0700) | ||
commit | c774b2dcf6c16a408757e9da1bf7c006528fc6a6 | |
tree | 867625fb6c08de83ef6f44e5f6762cbcc8f9886f | tree | snapshot |
parent | 808239a7db1b4c04c5a9edcf9ee33ff33217fad2 | commit | diff |
Patch for http-fetch.c and older curl releases
Older curl releases do not define CURLE_HTTP_RETURNED_ERROR, they
use CURLE_HTTP_NOT_FOUND instead. Newer curl releases keep the
CURLE_HTTP_NOT_FOUND definition but using a -DCURL_NO_OLDIES
preprocessor flag the old name will not be present in the 'curl.h'
header.
This patch makes our code written for newer releases of the curl
library but allow compiling against an older curl (older than
0x070a03) by defining the missing CURLE_HTTP_RETURNED_ERROR as a
synonym for CURLE_HTTP_NOT_FOUND.
Signed-off-by: Art Haas <ahaas@airmail.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Older curl releases do not define CURLE_HTTP_RETURNED_ERROR, they
use CURLE_HTTP_NOT_FOUND instead. Newer curl releases keep the
CURLE_HTTP_NOT_FOUND definition but using a -DCURL_NO_OLDIES
preprocessor flag the old name will not be present in the 'curl.h'
header.
This patch makes our code written for newer releases of the curl
library but allow compiling against an older curl (older than
0x070a03) by defining the missing CURLE_HTTP_RETURNED_ERROR as a
synonym for CURLE_HTTP_NOT_FOUND.
Signed-off-by: Art Haas <ahaas@airmail.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
http.h | diff | blob | history |