diff --git a/src/tl/tl/tlGit.cc b/src/tl/tl/tlGit.cc index a93282621..b119f5d59 100644 --- a/src/tl/tl/tlGit.cc +++ b/src/tl/tl/tlGit.cc @@ -99,7 +99,11 @@ GitObject::~GitObject () } static int +#if LIBGIT2_VER_MAJOR >= 1 fetch_progress (const git_indexer_progress *stats, void *payload) +#else +fetch_progress (const git_transfer_progress *stats, void *payload) +#endif { tl::RelativeProgress *progress = reinterpret_cast (payload);