bird1: fix compilation with GCC 10

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2020-08-11 12:25:58 -07:00
parent 8f9aa112b5
commit f0f0a892d8
No known key found for this signature in database
GPG Key ID: 36D31CFA845F0E3B
2 changed files with 12 additions and 1 deletions

View File

@ -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

View File

@ -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)