diff options
author | Vasil Dimov <vd@FreeBSD.org> | 2020-09-01 11:50:20 +0000 |
---|---|---|
committer | Vasil Dimov <vd@FreeBSD.org> | 2020-09-01 11:50:20 +0000 |
commit | 77132aba6ff33e0db217c99e5588e019d774f80a (patch) | |
tree | 9869cafb3b22116724ca264509cf7a4172d8d1ef | |
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)
Notes
Notes:
svn path=/head/; revision=547265
-rw-r--r-- | net-mgmt/iftop/files/patch-ui__common.c | 15 | ||||
-rw-r--r-- | net-mgmt/iftop/files/patch-ui__common.h | 20 |
2 files changed, 35 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}; + diff --git a/net-mgmt/iftop/files/patch-ui__common.h b/net-mgmt/iftop/files/patch-ui__common.h new file mode 100644 index 000000000000..2872e2f5cd73 --- /dev/null +++ b/net-mgmt/iftop/files/patch-ui__common.h @@ -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); |