1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-30 05:40:06 +00:00

Fix build with -fno-common

PR:		248880
Approved by:	pi (maintainer)
This commit is contained in:
Olivier Cochard 2020-08-24 17:20:18 +00:00
parent f4af22b296
commit 41b5d1258f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=546101
6 changed files with 66 additions and 0 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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