From 62ebbdbf0dcd79e38fa4d406ee0ce3dec1a824f4 Mon Sep 17 00:00:00 2001 From: tastytea Date: Wed, 1 Jul 2020 09:22:36 +0200 Subject: [PATCH] Compatibility with libgit2 < 0.28. --- src/git.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/git.cpp b/src/git.cpp index 7c79541..23c42d4 100644 --- a/src/git.cpp +++ b/src/git.cpp @@ -27,6 +27,12 @@ #include #include +#if LIBGIT2_VER_MAJOR == 0 +# if LIBGIT2_VER_MINOR < 28 +# define git_error_last giterr_last +# endif +#endif + namespace FediBlock::git {