Skip to content

Commit

Permalink
Add include needed for git_error_set_str for libgit2>=1.8 (#1658)
Browse files Browse the repository at this point in the history
`git_error_set_str` was moved into the `sys` subdirectory in libgit2
1.8.0. See [this pull
request](libgit2/libgit2#6625) for details and
[this issue](libgit2/libgit2#6776) for more
context.
  • Loading branch information
wshanks authored Mar 23, 2024
1 parent 0dca716 commit b962514
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/tl/tl/tlGit.cc
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
#include "tlEnv.h"

#include <git2.h>
#if LIBGIT2_VER_MAJOR > 1 || (LIBGIT2_VER_MAJOR == 1 && LIBGIT2_VER_MINOR >= 8)
#include <git2/sys/errors.h>
#endif
#include <cstdio>

namespace tl
Expand Down

0 comments on commit b962514

Please sign in to comment.