From: Vincent Bernat Date: Mon, 28 Sep 2020 14:30:56 +0000 (+0200) Subject: Unix: fix compilation with GCC 10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e4f91ee4cb11a10df6a61ab4ffcdc8e2da3c3483;p=thirdparty%2Fbird.git Unix: fix compilation with GCC 10 GCC 10 will now error when declaring a global variable twice: https://gcc.gnu.org/gcc-10/porting_to.html#common Fix this issue by declaring the variable as `extern' in `krt.h'. The variable is really declared in `krt.c'. --- diff --git a/sysdep/unix/krt.h b/sysdep/unix/krt.h index d4a8717e3..fe79efc37 100644 --- 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)