summaryrefslogtreecommitdiff
path: root/dev-ruby/ruby-glib2/files/ruby-glib2-3.5.1-glib-2.76.patch
blob: b575530551c83fafc2b8fe593bc48ab06dfadb86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
https://bugs.gentoo.org/900921
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=270087
https://cgit.freebsd.org/ports/commit/?id=9a23b33ce95593af78f9b973c1fba4fa8835cc25

--- a/ext/glib2/rbglib_bookmarkfile.c
+++ b/ext/glib2/rbglib_bookmarkfile.c
@@ -35,6 +35,7 @@ bookmarkfile_copy(const GBookmarkFile* file)
     return (GBookmarkFile*)file;
 }
 
+#if !GLIB_CHECK_VERSION(2, 76, 0)
 static GType
 g_bookmark_file_get_type(void)
 {
@@ -48,6 +49,7 @@ g_bookmark_file_get_type(void)
 /************************************************/
 
 #define G_TYPE_BOOKMARK_FILE (g_bookmark_file_get_type())
+#endif
 
 #define RG_TARGET_NAMESPACE cBookmarkFile
 #define _SELF(self) ((GBookmarkFile*)(RVAL2BOXED(self, G_TYPE_BOOKMARK_FILE)))