Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 1 | From 778f3cddc20930185a917fa3f8ffe1ef2b0b0ea0 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Sat, 31 Jul 2021 13:27:16 -0700 |
| 4 | Subject: [PATCH] test: Fix build with new compiler defaults to -fno-common |
| 5 | |
| 6 | Upstream-Status: Pending |
| 7 | Signed-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 | |
| 15 | diff --git a/sntp/tests/run-packetHandling.c b/sntp/tests/run-packetHandling.c |
| 16 | index 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===== |
| 28 | diff --git a/sntp/tests/run-t-log.c b/sntp/tests/run-t-log.c |
| 29 | index 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===== |
| 41 | diff --git a/sntp/tests/run-utilities.c b/sntp/tests/run-utilities.c |
| 42 | index 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===== |
| 54 | diff --git a/tests/libntp/test-libntp.h b/tests/libntp/test-libntp.h |
| 55 | index 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 | -- |
| 65 | 2.32.0 |
| 66 | |