forked from Lainports/freebsd-ports
Changes: https://github.com/libgit2/libgit2/releases/tag/v1.0.0 ABI: https://abi-laboratory.pro/tracker/timeline/libgit2 Approved by: mfechner (maintainer) Differential Revision: https://reviews.freebsd.org/D24471
20 lines
613 B
C++
20 lines
613 B
C++
--- src/application.cpp.orig 2018-12-05 17:27:24 UTC
|
|
+++ src/application.cpp
|
|
@@ -56,7 +56,7 @@ Application::Application(int &argc, char **argv)
|
|
|
|
|
|
#ifdef WITH_LIBGIT2
|
|
- #if LIBGIT2_SOVERSION >= 22
|
|
+ #if LIBGIT2_VER_MAJOR >= 1
|
|
git_libgit2_init();
|
|
#else
|
|
git_threads_init();
|
|
@@ -67,7 +67,7 @@ Application::Application(int &argc, char **argv)
|
|
Application::~Application()
|
|
{
|
|
#ifdef WITH_LIBGIT2
|
|
- #if LIBGIT2_SOVERSION >= 22
|
|
+ #if LIBGIT2_VER_MAJOR >= 1
|
|
git_libgit2_shutdown();
|
|
#else
|
|
git_threads_shutdown();
|