git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 1/3] Fix support for old libcurl

From
barkalow@iabervon.org <barkalow@iabervon.org>
Date
Jul 31, 2005, 19:59 UTC
Message-ID
<Pine.LNX.4.62.0507311530210.23721@iabervon.org>

Old libcurl has curl_easy_setopt(), and http-pull requires it; it just doesn't have one of the options.

Signed-off-by: Daniel Barkalow <barkalow@iabervon.org>
---
  http-pull.c |    5 ++---
  1 files changed, 2 insertions(+), 3 deletions(-)
9c32b0230180d507b4429fb35432bc404a89e637
diff --git a/http-pull.c b/http-pull.c
--- a/http-pull.c
+++ b/http-pull.c
@@ -12,9 +12,6 @@
  #if LIBCURL_VERSION_NUM < 0x070800
  #define curl_global_init(a) do { /* nothing */ } while(0)
  #endif
-#if LIBCURL_VERSION_NUM < 0x070907
-#define curl_easy_setopt(a, b, c) do { /* nothing */ } while(0)
-#endif

  static CURL *curl;

@@ -187,7 +184,9 @@ int main(int argc, char **argv)

  	curl_ssl_verify = gitenv("GIT_SSL_NO_VERIFY") ? 0 : 1;
  	curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, curl_ssl_verify);
+#if LIBCURL_VERSION_NUM >= 0x070907
  	curl_easy_setopt(curl, CURLOPT_NETRC, CURL_NETRC_OPTIONAL);
+#endif

  	base = url;
Message 1 of 1 in “Fix support for old libcurl”
  1. 1/3 Fix support for old libcurlbarkalow@iabervon.org, Jul 31, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.