ports/net-mgmt/iftop/files/patch-ui__common.h
Vasil Dimov 77132aba6f net-mgmt/iftop: fix build with -fno-common (clang11/gcc10)
PR:		248743
Submitted by:	dim
MFH:		2020Q3 (build fix)
2020-09-01 11:50:20 +00:00

20 lines
562 B
C

--- 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);