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

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

Index: libgit2-glib/ggit-remote-callbacks.c
--- libgit2-glib/ggit-remote-callbacks.c.orig
+++ libgit2-glib/ggit-remote-callbacks.c
@@ -160,7 +160,7 @@ credentials_wrap (git_cred     **cred,
 		{
 			if (error)
 			{
-#if LIBGIT2_SOVERSION >= 28
+#if LIBGIT2_VER_MAJOR > 0 || (LIBGIT2_VER_MAJOR == 0 && LIBGIT2_VER_MINOR >= 28)
 				git_error_set_str (GIT_ERROR, error->message);
 #else
 				giterr_set_str (GIT_ERROR, error->message);
