]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
[Bug 3688] GCC 10 build errors in testsuite
authorJuergen Perlinger <perlinger@ntp.org>
Thu, 15 Oct 2020 06:39:12 +0000 (08:39 +0200)
committerJuergen Perlinger <perlinger@ntp.org>
Thu, 15 Oct 2020 06:39:12 +0000 (08:39 +0200)
bk: 5f87ee90K_nb1CVI1BXYeeADGBC1fA

ChangeLog
sntp/log.c
sntp/tests/t-log.c

index eeceaa9f10cb57b56caf561eaab50a81ec861f63..0a54f2775f5aba58116234deb9a68647cf20154a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+---
+* [Bug 3688] GCC 10 build errors in testsuite <perlinger@ntp.org>
+
 ---
 (4.2.8p15) 2020/06/23 Released by Harlan Stenn <stenn@ntp.org>
 
index db6614d027109fcf1e7cf0833f896633985dc253..29b2ab4f5a2220f9cd8abd8112dd6a9b1634213c 100644 (file)
@@ -2,7 +2,9 @@
 
 #include "log.h"
 
+#ifndef LOG_PROGNAME_IS_EXTERN
 const char *progname;          /* for msyslog use too */
+#endif
 
 static int counter = 0;
 
index 08d4b6c59b2f525e2da71a0cbf3fada9b119d4a6..68b0e12ed46e8a2044cfe3869814b84d294cad8f 100644 (file)
@@ -3,7 +3,7 @@
 #include "ntp_types.h"
 
 
-//#include "log.h"
+#define LOG_PROGNAME_IS_EXTERN 1
 #include "log.c"
 
 void setUp(void);