bfdd: fix compilation with GCC 10

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2020-07-17 16:17:23 -07:00
parent dafbd9e5e4
commit 2bdabc1db7
2 changed files with 19 additions and 1 deletions
+18
View File
@@ -0,0 +1,18 @@
--- a/bfd.h
+++ b/bfd.h
@@ -299,13 +299,13 @@ typedef struct bfd_state_str_list_s {
int type;
} bfd_state_str_list;
-struct bfd_vrf {
+extern struct bfd_vrf {
int vrf_id;
char name[MAXNAMELEN + 1];
UT_hash_handle vh;
} bfd_vrf;
-struct bfd_iface {
+extern struct bfd_iface {
int vrf_id;
char ifname[MAXNAMELEN + 1];
UT_hash_handle ifh;