$OpenBSD: patch-libgit2-glib_ggit-patch_c,v 1.1 2020/11/07 14:53:25 jasper Exp $

https://github.com/GNOME/libgit2-glib/commit/c4eb90d627c8b041b29242b84b93ee4990ec7073

Index: libgit2-glib/ggit-patch.c
--- libgit2-glib/ggit-patch.c.orig
+++ libgit2-glib/ggit-patch.c
@@ -194,7 +194,7 @@ ggit_patch_to_string (GgitPatch  *patch,
 	if (ret == GIT_OK)
 	{
 		result = g_strdup (buf.ptr);
-#if LIBGIT2_SOVERSION >= 28
+#if LIBGIT2_VER_MAJOR > 0 || (LIBGIT2_VER_MAJOR == 0 && LIBGIT2_VER_MINOR >= 28)
 		git_buf_dispose (&buf);
 #else
 		git_buf_free (&buf);
