1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-11-22 20:14:04 +02:00

eeshow/file/git-util.c (git_init_once): use git_threads_init in old libgit2

Joerg has some ancient SuSE from 2014 where only libgit2 0.21 works ...
This commit is contained in:
Werner Almesberger 2016-08-19 04:59:10 -03:00
parent fc5597e2a0
commit 040a5af28f

View File

@ -77,7 +77,11 @@ void git_init_once(void)
static bool initialized = 0;
if (!initialized) {
#if LIBGIT2_VER_MAJOR == 0 && LIBGIT2_VER_MINOR < 22
git_threads_init();
#else
git_libgit2_init();
#endif
initialized = 1;
}
}