FreeBSD Bugzilla – Attachment 217328 Details for
Bug 248743
net-mgmt/iftop: Fix build with -fno-common (clang 11 and gcc 10)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix build with -fno-common (clang 11 and gcc 10)
net-mgmt__iftop-fix-common-1.diff (text/plain), 2.09 KB, created by
Dimitry Andric
on 2020-08-18 21:12:07 UTC
(
hide
)
Description:
Fix build with -fno-common (clang 11 and gcc 10)
Filename:
MIME Type:
Creator:
Dimitry Andric
Created:
2020-08-18 21:12:07 UTC
Size:
2.09 KB
patch
obsolete
>Index: net-mgmt/iftop/files/patch-ui__common.c >=================================================================== >--- net-mgmt/iftop/files/patch-ui__common.c (nonexistent) >+++ net-mgmt/iftop/files/patch-ui__common.c (working copy) >@@ -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}; >+ > >Property changes on: net-mgmt/iftop/files/patch-ui__common.c >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: net-mgmt/iftop/files/patch-ui__common.h >=================================================================== >--- net-mgmt/iftop/files/patch-ui__common.h (nonexistent) >+++ net-mgmt/iftop/files/patch-ui__common.h (working copy) >@@ -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); > >Property changes on: net-mgmt/iftop/files/patch-ui__common.h >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 248743
: 217328