[PATCH] main.cpp: fix broken build for libgit2 0.21
Lubomir I. Ivanov
neolit123 at gmail.com
Sun Dec 7 11:39:17 PST 2014
On 7 December 2014 at 21:34, Gaetan Bisson <bisson at archlinux.org> wrote:
> [2014-12-07 20:32:14 +0200] Lubomir I. Ivanov:
>> so if 'git_libgit2_init' isn't there and this is the case for version.h:
>> #define LIBGIT2_VER_MAJOR 0
>> #define LIBGIT2_VER_MINOR 21
>> there is no solution...it could be that the distro used another branch
>> to build the library.
>> from one of my earlier messages:
>> > 799e22ea (API broken) is after 4fb32a44 (version.h bumped to 0.21).
>> 799e22ea made the git_libgit2_init() change.
> Well, there is no occurrence of libgit2_init in the 0.21.1 tarball:
you can try the last patch i posted in the thread.
it checks for 0.22 and only then it uses the git_libgit2_init() function.
More information about the subsurface