Merge branch 'km/send-email-getopt-long-workarounds'
[gitweb.git] / http.c
diff --git a/http.c b/http.c
index efdab0979692153f016bdf1fdb1a2e782738f1bc..0153fb0b626d1fc28eba1bece2406b64fcaa0ecb 100644 (file)
--- a/http.c
+++ b/http.c
@@ -405,7 +405,9 @@ static CURL *get_curl_handle(void)
 
        if (curl_http_proxy) {
                curl_easy_setopt(result, CURLOPT_PROXY, curl_http_proxy);
+#if LIBCURL_VERSION_NUM >= 0x070a07
                curl_easy_setopt(result, CURLOPT_PROXYAUTH, CURLAUTH_ANY);
+#endif
        }
 
        set_curl_keepalive(result);