Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'js/imap-send-curl-compilation-fix' into maint
author
Junio C Hamano
<gitster@pobox.com>
Thu, 5 Nov 2015 20:18:10 +0000
(12:18 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Thu, 5 Nov 2015 20:18:10 +0000
(12:18 -0800)
"git imap-send" did not compile well with older version of cURL library.
* js/imap-send-curl-compilation-fix:
imap-send: only use CURLOPT_LOGIN_OPTIONS if it is actually available
imap-send.c
patch
|
blob
|
history
raw
(from parent 1:
3897d2d
)
diff --git
a/imap-send.c
b/imap-send.c
index 37ac4aa86a740ecc8430afff3b9d3c7a0c753a34..8c3fc212bacb4da7c2afea4a2aa47e051a4ef1ca 100644
(file)
--- a/
imap-send.c
+++ b/
imap-send.c
@@
-1422,11
+1422,15
@@
static CURL *setup_curl(struct imap_server_conf *srvc)
curl_easy_setopt(curl, CURLOPT_PORT, server.port);
if (server.auth_method) {
+#if LIBCURL_VERSION_NUM < 0x072200
+ warning("No LOGIN_OPTIONS support in this cURL version");
+#else
struct strbuf auth = STRBUF_INIT;
strbuf_addstr(&auth, "AUTH=");
strbuf_addstr(&auth, server.auth_method);
curl_easy_setopt(curl, CURLOPT_LOGIN_OPTIONS, auth.buf);
strbuf_release(&auth);
+#endif
}
if (!server.use_ssl)