]> git.ipfire.org Git - thirdparty/bird.git/commit
Unix: fix compilation with GCC 10
authorVincent Bernat <vincent@bernat.ch>
Mon, 28 Sep 2020 14:30:56 +0000 (16:30 +0200)
committerOndrej Zajicek (work) <santiago@crfreenet.org>
Mon, 28 Sep 2020 14:30:56 +0000 (16:30 +0200)
commite4f91ee4cb11a10df6a61ab4ffcdc8e2da3c3483
tree17a0b2e1fc429a7548f00261691de590854b9f1a
parenta3f035253cc48a18e080323729159db577cbb84a
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'.
sysdep/unix/krt.h