From: Juergen Perlinger Date: Mon, 26 Sep 2016 06:24:48 +0000 (+0200) Subject: [Bug 3021] unity_fixture.c needs pragma weak X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=30af84d70a4d20e9b2faa70cf3d5b40d3d4424c7;p=thirdparty%2Fntp.git [Bug 3021] unity_fixture.c needs pragma weak - add library implementation of empty setUp()/tearDown() bk: 57e8bf30AiR9G8_rmiGPq4UnVX4JUw --- diff --git a/sntp/unity/Makefile.am b/sntp/unity/Makefile.am index 31029ffcb..71092a0d8 100644 --- a/sntp/unity/Makefile.am +++ b/sntp/unity/Makefile.am @@ -12,6 +12,8 @@ libunity_a_CFLAGS = \ libunity_a_SOURCES = \ ../libpkgver/colcomp.c \ unity.c \ + ulib_setup.c \ + ulib_teardown.c \ unity.h \ unity_config.h \ unity_internals.h \ diff --git a/sntp/unity/ulib_setup.c b/sntp/unity/ulib_setup.c new file mode 100644 index 000000000..41a3b38f2 --- /dev/null +++ b/sntp/unity/ulib_setup.c @@ -0,0 +1,14 @@ +/* default / lib implementation of 'setUp()' + * + * SOLARIS does not support weak symbols -- need a real lib + * implemetation here. + */ + +extern void setUp(void); + +void setUp(void) +{ + /* empty on purpose */ +} + +/* -*- that's all folks! -*- */ diff --git a/sntp/unity/ulib_teardown.c b/sntp/unity/ulib_teardown.c new file mode 100644 index 000000000..a36cdf942 --- /dev/null +++ b/sntp/unity/ulib_teardown.c @@ -0,0 +1,13 @@ +/* default / lib implementation of 'tearDown()' + * + * SOLARIS does not support weak symbols -- need a real lib + * implemetation here. + */ + +extern void tearDown(void); + +void tearDown(void) +{ + /* empty on purpose */ +} +