From f0f0a892d81dfc3656b817f0a8d072ef0f482f2e Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Tue, 11 Aug 2020 12:25:58 -0700 Subject: [PATCH] bird1: fix compilation with GCC 10 Signed-off-by: Rosen Penev --- bird1/Makefile | 2 +- bird1/patches/010-gcc10.patch | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 bird1/patches/010-gcc10.patch diff --git a/bird1/Makefile b/bird1/Makefile index 4e7542e..33df35f 100644 --- a/bird1/Makefile +++ b/bird1/Makefile @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=bird1 PKG_VERSION:=1.6.8 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=bird-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=ftp://bird.network.cz/pub/bird diff --git a/bird1/patches/010-gcc10.patch b/bird1/patches/010-gcc10.patch new file mode 100644 index 0000000..beb4e03 --- /dev/null +++ b/bird1/patches/010-gcc10.patch @@ -0,0 +1,11 @@ +--- a/sysdep/unix/krt.h ++++ b/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) + -- 2.30.2