about summary refs log tree commit diff
path: root/rt/tst-timer4.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2015-03-04 15:14:56 -0800
committerRoland McGrath <roland@hack.frob.com>2015-03-04 15:14:56 -0800
commit2cfe32bc05b11b0dc633cd04f48f47734faf2399 (patch)
tree34b736b8344a6ceec8eeae0773d288ffa1b78c92 /rt/tst-timer4.c
parente27176eea8aa74400204be4d3400e9723169fcaf (diff)
downloadglibc-2cfe32bc05b11b0dc633cd04f48f47734faf2399.tar.gz
glibc-2cfe32bc05b11b0dc633cd04f48f47734faf2399.tar.xz
glibc-2cfe32bc05b11b0dc633cd04f48f47734faf2399.zip
Conditionalize some test code for SIGRTMIN, SA_SIGINFO.
Diffstat (limited to 'rt/tst-timer4.c')
-rw-r--r--rt/tst-timer4.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/rt/tst-timer4.c b/rt/tst-timer4.c
index 4a06496cb6..f694e300c5 100644
--- a/rt/tst-timer4.c
+++ b/rt/tst-timer4.c
@@ -24,7 +24,7 @@
 #include <time.h>
 #include <unistd.h>
 #include <stdint.h>
-#if _POSIX_THREADS
+#if _POSIX_THREADS && defined SA_SIGINFO
 # include <pthread.h>
 
 # 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