net/bird: Fix build with -fno-common

Fix the build of net/bird when compiled with -fno-common, which is the
default with llvm 11.

MFH:		2020Q3
This commit is contained in:
Niclas Zeising 2020-08-20 21:27:01 +00:00
parent e178d3411b
commit 6794140dfb
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=545563

View file

@ -0,0 +1,11 @@
--- sysdep/unix/krt.h.orig 2020-08-20 21:22:44 UTC
+++ sysdep/unix/krt.h
@@ -112,7 +112,7 @@ struct kif_proto {
struct kif_state sys; /* Sysdep state */
};
-struct kif_proto *kif_proto;
+extern struct kif_proto *kif_proto;
#define KIF_CF ((struct kif_config *)p->p.cf)