blob: 42e1efd8be8adc871881f1cecb3276b880e5415b [file] [log] [blame]
Patrick Williams213cb262021-08-07 19:21:33 -05001From 778f3cddc20930185a917fa3f8ffe1ef2b0b0ea0 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 31 Jul 2021 13:27:16 -0700
4Subject: [PATCH] test: Fix build with new compiler defaults to -fno-common
5
6Upstream-Status: Pending
7Signed-off-by: Khem Raj <raj.khem@gmail.com>
8---
9 sntp/tests/run-packetHandling.c | 2 +-
10 sntp/tests/run-t-log.c | 2 +-
11 sntp/tests/run-utilities.c | 2 +-
12 tests/libntp/test-libntp.h | 2 +-
13 4 files changed, 4 insertions(+), 4 deletions(-)
14
15diff --git a/sntp/tests/run-packetHandling.c b/sntp/tests/run-packetHandling.c
16index 7790b20..c58380c 100644
17--- a/sntp/tests/run-packetHandling.c
18+++ b/sntp/tests/run-packetHandling.c
19@@ -64,7 +64,7 @@ void resetTest(void)
20 setUp();
21 }
22
23-char const *progname;
24+extern char const *progname;
25
26
27 //=======MAIN=====
28diff --git a/sntp/tests/run-t-log.c b/sntp/tests/run-t-log.c
29index 268bf41..cd835bc 100644
30--- a/sntp/tests/run-t-log.c
31+++ b/sntp/tests/run-t-log.c
32@@ -50,7 +50,7 @@ void resetTest(void)
33 setUp();
34 }
35
36-char const *progname;
37+extern char const *progname;
38
39
40 //=======MAIN=====
41diff --git a/sntp/tests/run-utilities.c b/sntp/tests/run-utilities.c
42index f717882..98d9bf1 100644
43--- a/sntp/tests/run-utilities.c
44+++ b/sntp/tests/run-utilities.c
45@@ -58,7 +58,7 @@ void resetTest(void)
46 setUp();
47 }
48
49-char const *progname;
50+extern char const *progname;
51
52
53 //=======MAIN=====
54diff --git a/tests/libntp/test-libntp.h b/tests/libntp/test-libntp.h
55index 93050b3..60461d8 100644
56--- a/tests/libntp/test-libntp.h
57+++ b/tests/libntp/test-libntp.h
58@@ -5,4 +5,4 @@
59
60 time_t timefunc(time_t *ptr);
61 void settime(int y, int m, int d, int H, int M, int S);
62-time_t nowtime;
63+extern time_t nowtime;
64--
652.32.0
66