From 2cfe32bc05b11b0dc633cd04f48f47734faf2399 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 4 Mar 2015 15:14:56 -0800 Subject: Conditionalize some test code for SIGRTMIN, SA_SIGINFO. --- rt/tst-timer4.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'rt/tst-timer4.c') diff --git a/rt/tst-timer4.c b/rt/tst-timer4.c index 4a06496..f694e30 100644 --- a/rt/tst-timer4.c +++ b/rt/tst-timer4.c @@ -24,7 +24,7 @@ #include #include #include -#if _POSIX_THREADS +#if _POSIX_THREADS && defined SA_SIGINFO # include # ifndef TEST_CLOCK @@ -641,6 +641,11 @@ do_test (void) } return result; } + +#elif defined TEST_CLOCK_MISSING +/* This just ensures that any functions called in TEST_CLOCK_MISSING + are not diagnosed as unused. */ +# define TEST_FUNCTION (TEST_CLOCK_MISSING (TEST_CLOCK), 0) #else # define TEST_FUNCTION 0 #endif -- cgit v1.1