From 9ae2283682467205fb95091a85e9a6d8cb9492c8 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Mon, 4 Feb 2019 04:12:54 +0000 Subject: Git error deprecation fix needs to be version specific --- gentoobrowse-api/service/utils/git.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gentoobrowse-api/service/utils/git.cpp b/gentoobrowse-api/service/utils/git.cpp index fa0e191..5dc1a98 100644 --- a/gentoobrowse-api/service/utils/git.cpp +++ b/gentoobrowse-api/service/utils/git.cpp @@ -9,7 +9,11 @@ namespace Gentoo { void throwError(void * const func, int err) { +#if LIBGIT2_VER_MINOR >= 28 const git_error * e = git_error_last(); +#else + const git_error * e = giterr_last(); +#endif char ** fn = backtrace_symbols(&func, 1); assert(fn); assert(*fn); -- cgit v1.2.3