blob: 24019e974b30bd1933fc753932378b464bae0030 [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>
Patrick Williamsb542dec2023-06-09 01:26:37 -05008Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Patrick Williams213cb262021-08-07 19:21:33 -05009---
10 sntp/tests/run-packetHandling.c | 2 +-
11 sntp/tests/run-t-log.c | 2 +-
12 sntp/tests/run-utilities.c | 2 +-
Patrick Williamsb542dec2023-06-09 01:26:37 -050013 3 files changed, 3 insertions(+), 3 deletions(-)
Patrick Williams213cb262021-08-07 19:21:33 -050014
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=====
Patrick Williams213cb262021-08-07 19:21:33 -050054--
Patrick Williamsb542dec2023-06-09 01:26:37 -0500552.34.1
Patrick Williams213cb262021-08-07 19:21:33 -050056