pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
devel/pango on x86-soaris with sunpro patch
Building pango-1.22.2 on x86-solaris with sunpro fail because of an
unnamed union.
It's already reported upstream:
http://bugzilla.gnome.org/show_bug.cgi?id=560730
The patch is stolen from here:
http://src.opensolaris.org/source/xref/jds/spec-files/trunk/patches/pango-04-unnamed-unions.diff
$NetBSD$
--- pango/pango-language.c.orig 2008-08-20 21:47:11.000000000 +0200
+++ pango/pango-language.c
@@ -487,7 +487,7 @@ static const union _LangPool {
#define LANGUAGE(id, source, sample) char
POOLSTRFIELD(__LINE__)[sizeof(sample)];
#include "pango-language-sample-table.h"
#undef LANGUAGE
- };
+ } blah;
const char str[1];
} lang_pool = { {
"",
@@ -496,7 +496,7 @@ static const union _LangPool {
#undef LANGUAGE
} };
static const LangInfo lang_texts[] = {
-#define LANGUAGE(id, source, sample) {G_STRINGIFY(id), G_STRUCT_OFFSET(union
_LangPool, POOLSTRFIELD(__LINE__))},
+#define LANGUAGE(id, source, sample) {G_STRINGIFY(id), G_STRUCT_OFFSET(union
_LangPool, blah.POOLSTRFIELD(__LINE__))},
#include "pango-language-sample-table.h"
#undef LANGUAGE
/* One extra entry with no final comma, to make it C89-happy */
Home |
Main Index |
Thread Index |
Old Index