diff options
author | Darren Tucker <dtucker@dtucker.net> | 2018-11-22 19:59:28 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2018-11-23 11:34:21 +1100 |
commit | deb51552c3ce7ce72c8d0232e4f36f2e7c118c7d (patch) | |
tree | de1d1b282a05b10317f2818580c865b4e639b839 /regress/unittests | |
parent | 28c7b2cd050f4416bfcf3869a20e3ea138aa52fe (diff) |
Resync with OpenBSD by pulling in an ifdef SIGINFO.
Diffstat (limited to 'regress/unittests')
-rw-r--r-- | regress/unittests/test_helper/test_helper.c | 2 |
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 | ||
231 | static void | 232 | static void |
232 | siginfo(int unused __attribute__((__unused__))) | 233 | siginfo(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 | ||
240 | void | 242 | void |
241 | test_start(const char *n) | 243 | test_start(const char *n) |