summarylogtreecommitdiffstats
path: root/gcc10_common_fix.patch
diff options
context:
space:
mode:
Diffstat (limited to 'gcc10_common_fix.patch')
-rw-r--r--gcc10_common_fix.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/gcc10_common_fix.patch b/gcc10_common_fix.patch
new file mode 100644
index 00000000000..a5867b49516
--- /dev/null
+++ b/gcc10_common_fix.patch
@@ -0,0 +1,24 @@
+diff -Nur original/gtk/window-decorator/gtk-window-decorator.c modified/gtk/window-decorator/gtk-window-decorator.c
+--- original/gtk/window-decorator/gtk-window-decorator.c 2019-11-27 13:24:31.000000000 +0000
++++ modified/gtk/window-decorator/gtk-window-decorator.c 2020-05-17 00:28:11.586617947 +0100
+@@ -122,7 +122,7 @@
+
+ XRenderPictFormat *xformat_rgba;
+
+-const gchar * window_type_frames[WINDOW_TYPE_FRAMES_NUM] = {
++const gchar * __attribute__((__common__))window_type_frames[WINDOW_TYPE_FRAMES_NUM] = {
+ "normal", "modal_dialog", "dialog", "menu", "utility"
+ };
+
+diff -Nur original/gtk/window-decorator/gtk-window-decorator.h modified/gtk/window-decorator/gtk-window-decorator.h
+--- original/gtk/window-decorator/gtk-window-decorator.h 2019-11-27 13:24:31.000000000 +0000
++++ modified/gtk/window-decorator/gtk-window-decorator.h 2020-05-17 00:27:21.383286282 +0100
+@@ -272,7 +272,7 @@
+ } default_frame_references_t;
+
+ extern default_frame_references_t default_frames[WINDOW_TYPE_FRAMES_NUM * 2];
+-const gchar * window_type_frames[WINDOW_TYPE_FRAMES_NUM];
++const gchar * __attribute__((__common__))window_type_frames[WINDOW_TYPE_FRAMES_NUM];
+
+ extern char *program_name;
+