From 2a41b13efd2f0e27fcd864bf94483e1f163acc32 Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Wed, 25 Oct 2023 23:08:20 +0200 Subject: [PATCH] Compatibility with old libgit2 --- src/tl/tl/tlGit.cc | 4 ++++ 1 file changed, 4 insertions(+) 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);