From b962514767602c0e173eea83a68b6778e02f8cc4 Mon Sep 17 00:00:00 2001 From: Will Shanks Date: Sat, 23 Mar 2024 10:44:04 -0400 Subject: [PATCH] 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. --- src/tl/tl/tlGit.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tl/tl/tlGit.cc b/src/tl/tl/tlGit.cc index 3e749e633..6278bccfe 100644 --- a/src/tl/tl/tlGit.cc +++ b/src/tl/tl/tlGit.cc @@ -30,6 +30,9 @@ #include "tlEnv.h" #include +#if LIBGIT2_VER_MAJOR > 1 || (LIBGIT2_VER_MAJOR == 1 && LIBGIT2_VER_MINOR >= 8) + #include +#endif #include namespace tl