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'.
This commit is contained in:
Vincent Bernat
2020-09-28 16:30:56 +02:00
committed by Ondrej Zajicek (work)
parent a3f035253c
commit e4f91ee4cb
+1 -1
View File
@@ -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)