From 73ba32ec48e1e0e4a56b1bceed4635711526e079 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Sat, 28 May 2022 17:20:58 +0100 Subject: [PATCH] fix build on gcc-10 (-fno-common) gcc-10 changed the default from -fcommon to fno-common: https://gcc.gnu.org/PR85678 As a result build fails as: ld: src/util.c.1.o:/build/pflask/build/../src/printf.h:42: multiple definition of `use_syslog'; src/cgroup.c.1.o:/build/pflask/build/../src/printf.h:42: first defined here --- src/printf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/printf.h b/src/printf.h index b4001fe..2ed6222 100644 --- a/src/printf.h +++ b/src/printf.h @@ -39,7 +39,7 @@ #define CURSOR_HIDE "[?25l" #define CURSOR_SHOW "[?25h" -int use_syslog; +extern int use_syslog; void ok_printf(const char *fmt, ...); void debug_printf(const char *fmt, ...);