Add include needed for git_error_set_str for libgit2>=1.8 (#1658)

`git_error_set_str` was moved into the `sys` subdirectory in libgit2
1.8.0. See [this pull
request](https://github.com/libgit2/libgit2/pull/6625) for details and
[this issue](https://github.com/libgit2/libgit2/issues/6776) for more
context.
This commit is contained in:
Will Shanks 2024-03-23 10:44:04 -04:00 committed by GitHub
parent 0dca716e55
commit b962514767
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -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