summaryrefslogtreecommitdiff
path: root/net-mgmt/iftop/files/patch-ui__common.c
diff options
context:
space:
mode:
authorVasil Dimov <vd@FreeBSD.org>2020-09-01 11:50:20 +0000
committerVasil Dimov <vd@FreeBSD.org>2020-09-01 11:50:20 +0000
commit77132aba6ff33e0db217c99e5588e019d774f80a (patch)
tree9869cafb3b22116724ca264509cf7a4172d8d1ef /net-mgmt/iftop/files/patch-ui__common.c
parent- Update to 5.1.1 (diff)
net-mgmt/iftop: fix build with -fno-common (clang11/gcc10)
PR: 248743 Submitted by: dim MFH: 2020Q3 (build fix)
Diffstat (limited to 'net-mgmt/iftop/files/patch-ui__common.c')
-rw-r--r--net-mgmt/iftop/files/patch-ui__common.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/net-mgmt/iftop/files/patch-ui__common.c b/net-mgmt/iftop/files/patch-ui__common.c
new file mode 100644
index 000000000000..c1d3b37bdebd
--- /dev/null
+++ b/net-mgmt/iftop/files/patch-ui__common.c
@@ -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};
+