aboutsummaryrefslogtreecommitdiff
path: root/net/bird2
diff options
context:
space:
mode:
authorNiclas Zeising <zeising@FreeBSD.org>2020-08-20 21:21:20 +0000
committerNiclas Zeising <zeising@FreeBSD.org>2020-08-20 21:21:20 +0000
commite178d3411bc43caa9fc57019a643572e6dafd404 (patch)
tree94fb89d7ae14941c69c11157e2261a2b0f47adde /net/bird2
parent43103793418214756515ed6a52f238e76c2f28df (diff)
downloadports-e178d3411bc43caa9fc57019a643572e6dafd404.tar.gz
ports-e178d3411bc43caa9fc57019a643572e6dafd404.zip
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
Notes
Notes: svn path=/head/; revision=545562
Diffstat (limited to 'net/bird2')
-rw-r--r--net/bird2/files/patch-nest_route.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/net/bird2/files/patch-nest_route.h b/net/bird2/files/patch-nest_route.h
new file mode 100644
index 000000000000..e7683afb3721
--- /dev/null
+++ b/net/bird2/files/patch-nest_route.h
@@ -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] : "???"; }