diff options
-rw-r--r-- | gentoobrowse-api/service/utils/git.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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); |