From: Juergen Perlinger Date: Thu, 15 Oct 2020 06:39:12 +0000 (+0200) Subject: [Bug 3688] GCC 10 build errors in testsuite X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d9883f37786e3722f549a2f2a2b999fc236d5f41;p=thirdparty%2Fntp.git [Bug 3688] GCC 10 build errors in testsuite bk: 5f87ee90K_nb1CVI1BXYeeADGBC1fA --- diff --git a/ChangeLog b/ChangeLog index eeceaa9f1..0a54f2775 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +--- +* [Bug 3688] GCC 10 build errors in testsuite + --- (4.2.8p15) 2020/06/23 Released by Harlan Stenn diff --git a/sntp/log.c b/sntp/log.c index db6614d02..29b2ab4f5 100644 --- a/sntp/log.c +++ b/sntp/log.c @@ -2,7 +2,9 @@ #include "log.h" +#ifndef LOG_PROGNAME_IS_EXTERN const char *progname; /* for msyslog use too */ +#endif static int counter = 0; diff --git a/sntp/tests/t-log.c b/sntp/tests/t-log.c index 08d4b6c59..68b0e12ed 100644 --- a/sntp/tests/t-log.c +++ b/sntp/tests/t-log.c @@ -3,7 +3,7 @@ #include "ntp_types.h" -//#include "log.h" +#define LOG_PROGNAME_IS_EXTERN 1 #include "log.c" void setUp(void);