aboutsummaryrefslogtreecommitdiffstats
path: root/community/firefox-esr/mozilla-flexible-array-member-in-union.patch
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2016-08-20 03:16:55 +0200
committerCarlo Landmeter <clandmeter@gmail.com>2016-08-20 03:17:15 +0200
commit303b731836b4b206657ef5f944d8ca4c178ca4cf (patch)
treecbd97e8680bc17047e78aba726280547ced9e15e /community/firefox-esr/mozilla-flexible-array-member-in-union.patch
parent3fc5d9c2eb7d3d38c00d92d6fe40630711a0a6d7 (diff)
downloadaports-303b731836b4b206657ef5f944d8ca4c178ca4cf.tar.bz2
aports-303b731836b4b206657ef5f944d8ca4c178ca4cf.tar.xz
community/firefox-esr: build fix gcc6
Diffstat (limited to 'community/firefox-esr/mozilla-flexible-array-member-in-union.patch')
-rw-r--r--community/firefox-esr/mozilla-flexible-array-member-in-union.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/community/firefox-esr/mozilla-flexible-array-member-in-union.patch b/community/firefox-esr/mozilla-flexible-array-member-in-union.patch
new file mode 100644
index 0000000000..74530c7498
--- /dev/null
+++ b/community/firefox-esr/mozilla-flexible-array-member-in-union.patch
@@ -0,0 +1,22 @@
+--- firefox-45.0.1-orig/gfx/harfbuzz/src/hb-font-private.hh 2016-03-15 23:37:28.000000000 +0100
++++ firefox-45.0.1/gfx/harfbuzz/src/hb-font-private.hh 2016-05-13 17:20:25.836258108 +0200
+@@ -80,7 +80,7 @@ struct hb_font_funcs_t {
+ HB_FONT_FUNCS_IMPLEMENT_CALLBACKS
+ #undef HB_FONT_FUNC_IMPLEMENT
+ } f;
+- void (*array[]) (void);
++ void (*array[VAR]) (void);
+ } get;
+ };
+
+--- firefox-45.0.1-orig/gfx/harfbuzz/src/hb-private.hh 2016-03-15 23:37:28.000000000 +0100
++++ firefox-45.0.1/gfx/harfbuzz/src/hb-private.hh 2016-05-13 17:20:55.909655179 +0200
+@@ -1010,5 +1010,7 @@ hb_options (void)
+ return _hb_options.opts;
+ }
+
++/* Size signifying variable-sized array */
++#define VAR 1
+
+ #endif /* HB_PRIVATE_HH */
+