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 {