diff --git a/common/git/kicad_git_common.cpp b/common/git/kicad_git_common.cpp index 9a2ea404fc..ba8c85970f 100644 --- a/common/git/kicad_git_common.cpp +++ b/common/git/kicad_git_common.cpp @@ -26,6 +26,7 @@ #include "git_repo_mixin.h" #include +#include #include #include diff --git a/common/git/kicad_git_compat.h b/common/git/kicad_git_compat.h index 6892ef56f6..d811b0a4a5 100644 --- a/common/git/kicad_git_compat.h +++ b/common/git/kicad_git_compat.h @@ -31,4 +31,8 @@ #define GIT_BUF_INIT { NULL, 0, 0 } #endif +#if LIBGIT2_VER_MAJOR > 1 || ( LIBGIT2_VER_MAJOR == 1 && LIBGIT2_VER_MINOR >= 8 ) +#include +#endif + #endif // KICAD_GIT_COMPAT_H_ \ No newline at end of file