From 040a5af28fb0f0c0c39c9e1dc9fa9e37a583a010 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Fri, 19 Aug 2016 04:59:10 -0300 Subject: [PATCH] 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 ... --- eeshow/file/git-util.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/eeshow/file/git-util.c b/eeshow/file/git-util.c index 7abf5cf..5d604f5 100644 --- a/eeshow/file/git-util.c +++ b/eeshow/file/git-util.c @@ -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; } }