svn commit: r547265 - head/net-mgmt/iftop/files
Vasil Dimov
vd at FreeBSD.org
Tue Sep 1 11:50:20 UTC 2020
Author: vd
Date: Tue Sep 1 11:50:20 2020
New Revision: 547265
URL: https://svnweb.freebsd.org/changeset/ports/547265
Log:
net-mgmt/iftop: fix build with -fno-common (clang11/gcc10)
PR: 248743
Submitted by: dim
MFH: 2020Q3 (build fix)
Added:
head/net-mgmt/iftop/files/
head/net-mgmt/iftop/files/patch-ui__common.c (contents, props changed)
head/net-mgmt/iftop/files/patch-ui__common.h (contents, props changed)
Added: head/net-mgmt/iftop/files/patch-ui__common.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/net-mgmt/iftop/files/patch-ui__common.c Tue Sep 1 11:50:20 2020 (r547265)
@@ -0,0 +1,15 @@
+--- ui_common.c.orig 2014-01-05 18:40:46 UTC
++++ ui_common.c
+@@ -17,6 +17,12 @@
+
+ #include "ui_common.h"
+
++sorted_list_type screen_list;
++host_pair_line totals;
++int peaksent, peakrecv, peaktotal;
++hash_type* screen_hash;
++hash_type* service_hash;
++
+ /* 2, 10 and 40 seconds */
+ int history_divs[HISTORY_DIVISIONS] = {1, 5, 20};
+
Added: head/net-mgmt/iftop/files/patch-ui__common.h
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/net-mgmt/iftop/files/patch-ui__common.h Tue Sep 1 11:50:20 2020 (r547265)
@@ -0,0 +1,20 @@
+--- ui_common.h.orig 2014-01-01 14:17:08 UTC
++++ ui_common.h
+@@ -33,12 +33,12 @@ typedef struct host_pair_line_tag {
+
+ extern options_t options;
+
+-sorted_list_type screen_list;
+-host_pair_line totals;
+-int peaksent, peakrecv, peaktotal;
++extern sorted_list_type screen_list;
++extern host_pair_line totals;
++extern int peaksent, peakrecv, peaktotal;
+ extern history_type history_totals;
+-hash_type* screen_hash;
+-hash_type* service_hash;
++extern hash_type* screen_hash;
++extern hash_type* service_hash;
+
+ void analyse_data(void);
+ void screen_list_init(void);
More information about the svn-ports-all
mailing list