aboutsummaryrefslogtreecommitdiff
path: root/net/bfdd
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2020-07-17 16:17:23 -0700
committerRosen Penev <rosenp@gmail.com>2020-07-17 20:34:36 -0700
commit2bdabc1db734254e3fc98b3bbe730b8e30c189ad (patch)
tree8b7c8f78c4a9347f8cb58aa4a9f49ae436ae8e3b /net/bfdd
parentdafbd9e5e4188135cb097ee3d793cae5258795a7 (diff)
bfdd: fix compilation with GCC 10
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'net/bfdd')
-rw-r--r--net/bfdd/Makefile2
-rw-r--r--net/bfdd/patches/020-gcc10.patch18
2 files changed, 19 insertions, 1 deletions
diff --git a/net/bfdd/Makefile b/net/bfdd/Makefile
index 6cd5beb8a..16b9b096b 100644
--- a/net/bfdd/Makefile
+++ b/net/bfdd/Makefile
@@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=bfdd
PKG_SOURCE_DATE:=2019-08-22
-PKG_RELEASE:=2
+PKG_RELEASE:=3
PKG_SOURCE_VERSION:=c54534beb524afc3972039f57b56ec65332b43f7
PKG_SOURCE_URL:=https://codeload.github.com/rzalamena/bfdd/tar.gz/$(PKG_SOURCE_VERSION)?
diff --git a/net/bfdd/patches/020-gcc10.patch b/net/bfdd/patches/020-gcc10.patch
new file mode 100644
index 000000000..9c6445a74
--- /dev/null
+++ b/net/bfdd/patches/020-gcc10.patch
@@ -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;