components/ntp/patches/80-weak.patch
author Channappa BV<channappa.vakkalad@oracle.com>
Thu, 03 Nov 2016 22:18:09 -0700
changeset 7244 0d8fd6bb915f
parent 5959 252103d8ad49
permissions -rw-r--r--
25039888 Update timezone data to 2016i

This has been submitted as NTP community bug 3021
http://bugzilla.ntp.org/show_bug.cgi?id=3021
This patch may be removed when NTP is upgraded to a version that has bug
3021 fixed in it.

--- sntp/unity/unity_fixture.c
+++ sntp/unity/unity_fixture.c
@@ -16,7 +16,8 @@ UNITY_FIXTURE_T UnityFixture;
 int (*outputChar)(int) = putchar;
 
 int verbose = 0;
-
+#pragma weak setUp
+#pragma weak tearDown
 void setUp(void);
 void tearDown(void);
 void setUp(void)    { /*does nothing*/ }