mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-21 04:06:46 +00:00
net/bird2: Fix build with -fno-common
Fix the build of net/bird2 when compiled with -fno-common, which is the default with llvm 11. MFH: 2020Q3
This commit is contained in:
parent
4310379341
commit
e178d3411b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=545562
11
net/bird2/files/patch-nest_route.h
Normal file
11
net/bird2/files/patch-nest_route.h
Normal file
@ -0,0 +1,11 @@
|
||||
--- nest/route.h.orig 2020-08-20 21:16:52 UTC
|
||||
+++ nest/route.h
|
||||
@@ -458,7 +458,7 @@ typedef struct rta {
|
||||
protocol-specific metric is availabe */
|
||||
|
||||
|
||||
-const char * rta_dest_names[RTD_MAX];
|
||||
+extern const char * rta_dest_names[RTD_MAX];
|
||||
|
||||
static inline const char *rta_dest_name(uint n)
|
||||
{ return (n < RTD_MAX) ? rta_dest_names[n] : "???"; }
|
Loading…
Reference in New Issue
Block a user