summaryrefslogtreecommitdiff
path: root/regress/unittests
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@dtucker.net>2018-11-22 19:59:28 +1100
committerDarren Tucker <dtucker@dtucker.net>2018-11-23 11:34:21 +1100
commitdeb51552c3ce7ce72c8d0232e4f36f2e7c118c7d (patch)
treede1d1b282a05b10317f2818580c865b4e639b839 /regress/unittests
parent28c7b2cd050f4416bfcf3869a20e3ea138aa52fe (diff)
Resync with OpenBSD by pulling in an ifdef SIGINFO.
Diffstat (limited to 'regress/unittests')
-rw-r--r--regress/unittests/test_helper/test_helper.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/regress/unittests/test_helper/test_helper.c b/regress/unittests/test_helper/test_helper.c
index 6b4f343a8..39bab77f5 100644
--- a/regress/unittests/test_helper/test_helper.c
+++ b/regress/unittests/test_helper/test_helper.c
@@ -228,6 +228,7 @@ test_info(char *s, size_t len)
228 *subtest_info != '\0' ? " - " : "", subtest_info); 228 *subtest_info != '\0' ? " - " : "", subtest_info);
229} 229}
230 230
231#ifdef SIGINFO
231static void 232static void
232siginfo(int unused __attribute__((__unused__))) 233siginfo(int unused __attribute__((__unused__)))
233{ 234{
@@ -236,6 +237,7 @@ siginfo(int unused __attribute__((__unused__)))
236 test_info(buf, sizeof(buf)); 237 test_info(buf, sizeof(buf));
237 atomicio(vwrite, STDERR_FILENO, buf, strlen(buf)); 238 atomicio(vwrite, STDERR_FILENO, buf, strlen(buf));
238} 239}
240#endif
239 241
240void 242void
241test_start(const char *n) 243test_start(const char *n)