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>
1 file changed
tree: 867625fb6c08de83ef6f44e5f6762cbcc8f9886f
  1. arm/
  2. compat/
  3. contrib/
  4. Documentation/
  5. gitweb/
  6. mozilla-sha1/
  7. ppc/
  8. t/
  9. templates/
  10. xdiff/
  11. .gitignore
  12. alloc.c
  13. archive.h
  14. base85.c
  15. blame.c
  16. blob.c
  17. blob.h
  18. builtin-add.c
  19. builtin-apply.c
  20. builtin-archive.c
  21. builtin-cat-file.c
  22. builtin-check-ref-format.c
  23. builtin-checkout-index.c
  24. builtin-commit-tree.c
  25. builtin-count-objects.c
  26. builtin-diff-files.c
  27. builtin-diff-index.c
  28. builtin-diff-stages.c
  29. builtin-diff-tree.c
  30. builtin-diff.c
  31. builtin-fmt-merge-msg.c
  32. builtin-grep.c
  33. builtin-init-db.c
  34. builtin-log.c
  35. builtin-ls-files.c
  36. builtin-ls-tree.c
  37. builtin-mailinfo.c
  38. builtin-mailsplit.c
  39. builtin-mv.c
  40. builtin-name-rev.c
  41. builtin-pack-objects.c
  42. builtin-prune-packed.c
  43. builtin-prune.c
  44. builtin-push.c
  45. builtin-read-tree.c
  46. builtin-repo-config.c
  47. builtin-rev-list.c
  48. builtin-rev-parse.c
  49. builtin-rm.c
  50. builtin-runstatus.c
  51. builtin-show-branch.c
  52. builtin-stripspace.c
  53. builtin-symbolic-ref.c
  54. builtin-tar-tree.c
  55. builtin-unpack-objects.c
  56. builtin-update-index.c
  57. builtin-update-ref.c
  58. builtin-upload-archive.c
  59. builtin-upload-tar.c
  60. builtin-verify-pack.c
  61. builtin-write-tree.c
  62. builtin-zip-tree.c
  63. builtin.h
  64. cache-tree.c
  65. cache-tree.h
  66. cache.h
  67. check-racy.c
  68. color.c
  69. color.h
  70. combine-diff.c
  71. commit.c
  72. commit.h
  73. config.c
  74. config.mak.in
  75. configure.ac
  76. connect.c
  77. convert-objects.c
  78. copy.c
  79. COPYING
  80. csum-file.c
  81. csum-file.h
  82. ctype.c
  83. daemon.c
  84. date.c
  85. delta.h
  86. describe.c
  87. diff-delta.c
  88. diff-lib.c
  89. diff.c
  90. diff.h
  91. diffcore-break.c
  92. diffcore-delta.c
  93. diffcore-order.c
  94. diffcore-pickaxe.c
  95. diffcore-rename.c
  96. diffcore.h
  97. dir.c
  98. dir.h
  99. dump-cache-tree.c
  100. entry.c
  101. environment.c
  102. exec_cmd.c
  103. exec_cmd.h
  104. fetch-clone.c
  105. fetch-pack.c
  106. fetch.c
  107. fetch.h
  108. fsck-objects.c
  109. generate-cmdlist.sh
  110. git-am.sh
  111. git-annotate.perl
  112. git-applymbox.sh
  113. git-applypatch.sh
  114. git-archimport.perl
  115. git-bisect.sh
  116. git-branch.sh
  117. git-checkout.sh
  118. git-cherry.sh
  119. git-clean.sh
  120. git-clone.sh
  121. git-commit.sh
  122. git-compat-util.h
  123. git-cvsexportcommit.perl
  124. git-cvsimport.perl
  125. git-cvsserver.perl
  126. git-fetch.sh
  127. git-instaweb.sh
  128. git-lost-found.sh
  129. git-ls-remote.sh
  130. git-merge-octopus.sh
  131. git-merge-one-file.sh
  132. git-merge-ours.sh
  133. git-merge-recursive.py
  134. git-merge-resolve.sh
  135. git-merge-stupid.sh
  136. git-merge.sh
  137. git-p4import.py
  138. git-parse-remote.sh
  139. git-pull.sh
  140. git-quiltimport.sh
  141. git-rebase.sh
  142. git-relink.perl
  143. git-repack.sh
  144. git-request-pull.sh
  145. git-rerere.perl
  146. git-reset.sh
  147. git-resolve.sh
  148. git-revert.sh
  149. git-send-email.perl
  150. git-sh-setup.sh
  151. git-shortlog.perl
  152. git-svn.perl
  153. git-svnimport.perl
  154. git-tag.sh
  155. git-verify-tag.sh
  156. GIT-VERSION-GEN
  157. git.c
  158. git.spec.in
  159. gitk
  160. gitMergeCommon.py
  161. hash-object.c
  162. help.c
  163. http-fetch.c
  164. http-push.c
  165. http.c
  166. http.h
  167. ident.c
  168. imap-send.c
  169. index-pack.c
  170. INSTALL
  171. list-objects.c
  172. list-objects.h
  173. local-fetch.c
  174. lockfile.c
  175. log-tree.c
  176. log-tree.h
  177. Makefile
  178. merge-base.c
  179. merge-file.c
  180. merge-index.c
  181. merge-recursive.c
  182. merge-tree.c
  183. mktag.c
  184. mktree.c
  185. object-refs.c
  186. object.c
  187. object.h
  188. pack-check.c
  189. pack-redundant.c
  190. pack.h
  191. pager.c
  192. patch-delta.c
  193. patch-id.c
  194. path-list.c
  195. path-list.h
  196. path.c
  197. peek-remote.c
  198. pkt-line.c
  199. pkt-line.h
  200. quote.c
  201. quote.h
  202. read-cache.c
  203. README
  204. receive-pack.c
  205. refs.c
  206. refs.h
  207. revision.c
  208. revision.h
  209. rsh.c
  210. rsh.h
  211. run-command.c
  212. run-command.h
  213. send-pack.c
  214. server-info.c
  215. setup.c
  216. sha1_file.c
  217. sha1_name.c
  218. shell.c
  219. show-index.c
  220. sideband.c
  221. sideband.h
  222. ssh-fetch.c
  223. ssh-pull.c
  224. ssh-push.c
  225. ssh-upload.c
  226. strbuf.c
  227. strbuf.h
  228. tag.c
  229. tag.h
  230. tar.h
  231. test-date.c
  232. test-delta.c
  233. test-sha1.c
  234. test-sha1.sh
  235. trace.c
  236. tree-diff.c
  237. tree-walk.c
  238. tree-walk.h
  239. tree.c
  240. tree.h
  241. unpack-file.c
  242. unpack-trees.c
  243. unpack-trees.h
  244. update-server-info.c
  245. upload-pack.c
  246. usage.c
  247. var.c
  248. write_or_die.c
  249. wt-status.c
  250. wt-status.h
  251. xdiff-interface.c
  252. xdiff-interface.h