diff options
author | Olivier Cochard <olivier@FreeBSD.org> | 2020-08-24 17:20:18 +0000 |
---|---|---|
committer | Olivier Cochard <olivier@FreeBSD.org> | 2020-08-24 17:20:18 +0000 |
commit | 41b5d1258f1011703ddbfda92b2afbb0ee615034 (patch) | |
tree | 0f8d8670b2190f483c552b2e8d434203682bc900 /net-mgmt/pmacct | |
parent | f4af22b29629889851688bd3e217be0bf832bd5f (diff) | |
download | ports-41b5d1258f1011703ddbfda92b2afbb0ee615034.tar.gz ports-41b5d1258f1011703ddbfda92b2afbb0ee615034.zip |
Fix build with -fno-common
PR: 248880
Approved by: pi (maintainer)
Notes
Notes:
svn path=/head/; revision=546101
Diffstat (limited to 'net-mgmt/pmacct')
-rw-r--r-- | net-mgmt/pmacct/files/patch-src_nfacctd.c | 11 | ||||
-rw-r--r-- | net-mgmt/pmacct/files/patch-src_pmacctd.c | 11 | ||||
-rw-r--r-- | net-mgmt/pmacct/files/patch-src_pmbgpd.c | 11 | ||||
-rw-r--r-- | net-mgmt/pmacct/files/patch-src_pmbmpd.c | 11 | ||||
-rw-r--r-- | net-mgmt/pmacct/files/patch-src_pmtelemetryd.c | 11 | ||||
-rw-r--r-- | net-mgmt/pmacct/files/patch-src_sfacctd.c | 11 |
6 files changed, 66 insertions, 0 deletions
diff --git a/net-mgmt/pmacct/files/patch-src_nfacctd.c b/net-mgmt/pmacct/files/patch-src_nfacctd.c new file mode 100644 index 000000000000..1a74e6d99c8c --- /dev/null +++ b/net-mgmt/pmacct/files/patch-src_nfacctd.c @@ -0,0 +1,11 @@ +--- src/nfacctd.c.orig 2020-08-24 15:07:56 UTC ++++ src/nfacctd.c +@@ -49,7 +49,7 @@ struct template_cache tpl_cache; + struct host_addr debug_a; + char debug_agent_addr[50]; + u_int16_t debug_agent_port; +-struct channels_list_entry channels_list[MAX_N_PLUGINS]; /* communication channels: core <-> plugins */ ++extern struct channels_list_entry channels_list[MAX_N_PLUGINS]; /* communication channels: core <-> plugins */ + + /* Functions */ + void usage_daemon(char *prog_name) diff --git a/net-mgmt/pmacct/files/patch-src_pmacctd.c b/net-mgmt/pmacct/files/patch-src_pmacctd.c new file mode 100644 index 000000000000..31e58ee74ada --- /dev/null +++ b/net-mgmt/pmacct/files/patch-src_pmacctd.c @@ -0,0 +1,11 @@ +--- src/pmacctd.c.orig 2020-08-24 15:11:03 UTC ++++ src/pmacctd.c +@@ -41,7 +41,7 @@ + #include "jhash.h" + + /* variables to be exported away */ +-struct channels_list_entry channels_list[MAX_N_PLUGINS]; /* communication channels: core <-> plugins */ ++extern struct channels_list_entry channels_list[MAX_N_PLUGINS]; /* communication channels: core <-> plugins */ + + /* Functions */ + void usage_daemon(char *prog_name) diff --git a/net-mgmt/pmacct/files/patch-src_pmbgpd.c b/net-mgmt/pmacct/files/patch-src_pmbgpd.c new file mode 100644 index 000000000000..773db531cfd2 --- /dev/null +++ b/net-mgmt/pmacct/files/patch-src_pmbgpd.c @@ -0,0 +1,11 @@ +--- src/pmbgpd.c.orig 2020-08-24 15:02:08 UTC ++++ src/pmbgpd.c +@@ -35,7 +35,7 @@ + #include "thread_pool.h" + + /* global var */ +-struct channels_list_entry channels_list[MAX_N_PLUGINS]; /* communication channels: core <-> plugins */ ++extern struct channels_list_entry channels_list[MAX_N_PLUGINS]; /* communication channels: core <-> plugins */ + + /* Functions */ + void usage_daemon(char *prog_name) diff --git a/net-mgmt/pmacct/files/patch-src_pmbmpd.c b/net-mgmt/pmacct/files/patch-src_pmbmpd.c new file mode 100644 index 000000000000..d9fc09e7ef28 --- /dev/null +++ b/net-mgmt/pmacct/files/patch-src_pmbmpd.c @@ -0,0 +1,11 @@ +--- src/pmbmpd.c.orig 2020-08-24 14:59:55 UTC ++++ src/pmbmpd.c +@@ -33,7 +33,7 @@ + #include "net_aggr.h" + + /* global var */ +-struct channels_list_entry channels_list[MAX_N_PLUGINS]; /* communication channels: core <-> plugins */ ++extern struct channels_list_entry channels_list[MAX_N_PLUGINS]; /* communication channels: core <-> plugins */ + + /* Functions */ + void usage_daemon(char *prog_name) diff --git a/net-mgmt/pmacct/files/patch-src_pmtelemetryd.c b/net-mgmt/pmacct/files/patch-src_pmtelemetryd.c new file mode 100644 index 000000000000..71041d5a1f51 --- /dev/null +++ b/net-mgmt/pmacct/files/patch-src_pmtelemetryd.c @@ -0,0 +1,11 @@ +--- src/pmtelemetryd.c.orig 2020-08-24 15:00:31 UTC ++++ src/pmtelemetryd.c +@@ -33,7 +33,7 @@ + #include "net_aggr.h" + + /* global var */ +-struct channels_list_entry channels_list[MAX_N_PLUGINS]; /* communication channels: core <-> plugins */ ++extern struct channels_list_entry channels_list[MAX_N_PLUGINS]; /* communication channels: core <-> plugins */ + + /* Functions */ + void usage_daemon(char *prog_name) diff --git a/net-mgmt/pmacct/files/patch-src_sfacctd.c b/net-mgmt/pmacct/files/patch-src_sfacctd.c new file mode 100644 index 000000000000..99eeed1da19a --- /dev/null +++ b/net-mgmt/pmacct/files/patch-src_sfacctd.c @@ -0,0 +1,11 @@ +--- src/sfacctd.c.orig 2020-08-24 15:09:12 UTC ++++ src/sfacctd.c +@@ -50,7 +50,7 @@ + #endif + + /* variables to be exported away */ +-struct channels_list_entry channels_list[MAX_N_PLUGINS]; /* communication channels: core <-> plugins */ ++extern struct channels_list_entry channels_list[MAX_N_PLUGINS]; /* communication channels: core <-> plugins */ + int sfacctd_counter_backend_methods; + struct bgp_misc_structs *sf_cnt_misc_db; + struct host_addr debug_a; |