summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2020-02-13 11:08:45 +0100
committerJeroen Roovers <jer@gentoo.org>2020-02-13 11:13:37 +0100
commit6cd511fdaadd068af8ce0b2872450d02c6a63364 (patch)
treeaafea6a111d08b288af5b42f743f3b532c877eb0 /net-analyzer/mbrowse/files/mbrowse-0.4.3-fno-common.patch
parentsys-devel/gcc-config: s390 stable wrt bug #709432 (diff)
downloadgentoo-6cd511fdaadd068af8ce0b2872450d02c6a63364.tar.gz
gentoo-6cd511fdaadd068af8ce0b2872450d02c6a63364.tar.bz2
gentoo-6cd511fdaadd068af8ce0b2872450d02c6a63364.zip
net-analyzer/mbrowse: Fix CFLAGS=-fno-common
Package-Manager: Portage-2.3.88, Repoman-2.3.20 Closes: https://bugs.gentoo.org/show_bug.cgi?id=709402 Signed-off-by: Jeroen Roovers <jer@gentoo.org>
Diffstat (limited to 'net-analyzer/mbrowse/files/mbrowse-0.4.3-fno-common.patch')
-rw-r--r--net-analyzer/mbrowse/files/mbrowse-0.4.3-fno-common.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/net-analyzer/mbrowse/files/mbrowse-0.4.3-fno-common.patch b/net-analyzer/mbrowse/files/mbrowse-0.4.3-fno-common.patch
new file mode 100644
index 000000000000..72a4c785a13c
--- /dev/null
+++ b/net-analyzer/mbrowse/files/mbrowse-0.4.3-fno-common.patch
@@ -0,0 +1,29 @@
+--- a/src/interface.h
++++ b/src/interface.h
+@@ -9,12 +9,14 @@
+ GtkAccelGroup *accels;
+ } main_widgets_t;
+
+-struct menu_items {
++typedef struct menu_items {
+ char *item;
+ GtkSignalFunc func;
+ gpointer data;
+ GtkWidget *mi;
+-};
++} menu_items;
++
++extern struct menu_items bookmark_items[128];
+
+ void set_hostname(const char *host);
+ void set_oid(const char *oid);
+--- a/src/bookmarks.c
++++ b/src/bookmarks.c
+@@ -27,7 +27,6 @@
+ static GtkWidget *bkdial;
+ int delete = 0;
+
+-struct menu_items bookmark_items[128];
+ static GtkWidget* create_bookmark_dialogue(void);
+
+ static void mark_for_delete(void) {