aboutsummaryrefslogtreecommitdiff
path: root/nptl/tst-cancel25.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2015-02-06 12:31:11 -0800
committerRoland McGrath <roland@hack.frob.com>2015-02-06 12:31:11 -0800
commit022f481264c197e1b0f20faa58cc4c21ce099597 (patch)
treed6c35ae76e9c8e8ce49fd5b33648dff188456191 /nptl/tst-cancel25.c
parent1ac074e66e8ee0e548742fcc79a705284448aea6 (diff)
downloadglibc-022f481264c197e1b0f20faa58cc4c21ce099597.zip
glibc-022f481264c197e1b0f20faa58cc4c21ce099597.tar.gz
glibc-022f481264c197e1b0f20faa58cc4c21ce099597.tar.bz2
NPTL: Conditionalize some sanity tests for SIGCANCEL/SIGSETXID.
Diffstat (limited to 'nptl/tst-cancel25.c')
-rw-r--r--nptl/tst-cancel25.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/nptl/tst-cancel25.c b/nptl/tst-cancel25.c
index 00b99ad..ed4205e 100644
--- a/nptl/tst-cancel25.c
+++ b/nptl/tst-cancel25.c
@@ -11,6 +11,7 @@ static pthread_t th2;
static void *
tf2 (void *arg)
{
+#ifdef SIGCANCEL
sigset_t mask;
if (pthread_sigmask (SIG_SETMASK, NULL, &mask) != 0)
{
@@ -22,6 +23,7 @@ tf2 (void *arg)
puts ("SIGCANCEL blocked in new thread");
exit (1);
}
+#endif
/* Sync with the main thread so that we do not test anything else. */
int e = pthread_barrier_wait (&b);