diff --git a/devel/glib20/Makefile b/devel/glib20/Makefile index 947bfb839b3f..acf729310312 100644 --- a/devel/glib20/Makefile +++ b/devel/glib20/Makefile @@ -56,6 +56,10 @@ OPTIONS= COLLATION_FIX "fix string collation" off .include +.if ${ARCH} == powerpc64 +EXTRA_PATCHES= ${.CURDIR}/files/extra-arch-powerpc64 +.endif + # Let glib use asm code for implementing atomic ops on i386 and amd64. .if ${ARCH} == "i386" GLIB_ARCH= i486 diff --git a/devel/glib20/files/extra-arch-powerpc64 b/devel/glib20/files/extra-arch-powerpc64 new file mode 100644 index 000000000000..d774ebd6b7b1 --- /dev/null +++ b/devel/glib20/files/extra-arch-powerpc64 @@ -0,0 +1,23 @@ + +--- gio/glib-compile-schemas.c.orig 2010-11-24 21:32:15.000000000 +0100 ++++ gio/glib-compile-schemas.c 2010-11-24 21:33:42.000000000 +0100 +@@ -1458,7 +1458,7 @@ + } + /* Text {{{2 */ + static void +-text (GMarkupParseContext *context, ++XXXtext (GMarkupParseContext *context, + const gchar *text, + gsize text_len, + gpointer user_data, +@@ -1590,7 +1590,7 @@ + parse_gschema_files (gchar **files, + gboolean strict) + { +- GMarkupParser parser = { start_element, end_element, text }; ++ GMarkupParser parser = { start_element, end_element, XXXtext }; + ParseState state = { 0, }; + const gchar *filename; + GError *error = NULL; + +