about summary refs log tree commit diff
path: root/third_party/git/http.h
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/git/http.h')
-rw-r--r--third_party/git/http.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/third_party/git/http.h b/third_party/git/http.h
index b429f1cf04..5e0ad724f9 100644
--- a/third_party/git/http.h
+++ b/third_party/git/http.h
@@ -25,8 +25,12 @@
 #if LIBCURL_VERSION_NUM < 0x070704
 #define curl_global_cleanup() do { /* nothing */ } while (0)
 #endif
+
 #if LIBCURL_VERSION_NUM < 0x070800
 #define curl_global_init(a) do { /* nothing */ } while (0)
+#elif LIBCURL_VERSION_NUM >= 0x070c00
+#define curl_global_init(a) curl_global_init_mem(a, xmalloc, free, \
+						xrealloc, xstrdup, xcalloc)
 #endif
 
 #if (LIBCURL_VERSION_NUM < 0x070c04) || (LIBCURL_VERSION_NUM == 0x071000)