{"thread":{"id":"1379","subject":"[PATCH 1/3] Fix support for old libcurl","startedAt":"2005-07-31T19:59:20Z","lastAt":"2005-07-31T19:59:20Z","messageCount":1,"participants":["barkalow@iabervon.org"],"isPatch":true,"patchVersion":1,"patchTotal":3},"messages":[{"id":"6672","messageId":"Pine.LNX.4.62.0507311530210.23721@iabervon.org","threadId":"1379","inReplyTo":null,"subject":"[PATCH 1/3] Fix support for old libcurl","fromName":"","fromEmail":"barkalow@iabervon.org","sentAt":"2005-07-31T19:59:20Z","receivedAt":"2005-07-31T19:59:20Z","isPatch":true,"sender":{"key":"barkalow@iabervon.org","avatar":"https://avatars.githubusercontent.com/u/55364219?v=4"},"body":"Old libcurl has curl_easy_setopt(), and http-pull requires it; it just\ndoesn't have one of the options.\n\nSigned-off-by: Daniel Barkalow <barkalow@iabervon.org>\n---\n\n  http-pull.c |    5 ++---\n  1 files changed, 2 insertions(+), 3 deletions(-)\n\n9c32b0230180d507b4429fb35432bc404a89e637\ndiff --git a/http-pull.c b/http-pull.c\n--- a/http-pull.c\n+++ b/http-pull.c\n@@ -12,9 +12,6 @@\n  #if LIBCURL_VERSION_NUM < 0x070800\n  #define curl_global_init(a) do { /* nothing */ } while(0)\n  #endif\n-#if LIBCURL_VERSION_NUM < 0x070907\n-#define curl_easy_setopt(a, b, c) do { /* nothing */ } while(0)\n-#endif\n\n  static CURL *curl;\n\n@@ -187,7 +184,9 @@ int main(int argc, char **argv)\n\n  \tcurl_ssl_verify = gitenv(\"GIT_SSL_NO_VERIFY\") ? 0 : 1;\n  \tcurl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, curl_ssl_verify);\n+#if LIBCURL_VERSION_NUM >= 0x070907\n  \tcurl_easy_setopt(curl, CURLOPT_NETRC, CURL_NETRC_OPTIONAL);\n+#endif\n\n  \tbase = url;\n"}]}