about summary refs log tree commit diff
path: root/nptl/tst-cancel4.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 /nptl/tst-cancel4.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 'nptl/tst-cancel4.c')
-rw-r--r--nptl/tst-cancel4.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/nptl/tst-cancel4.c b/nptl/tst-cancel4.c
index 4916746614..e50afd7900 100644
--- a/nptl/tst-cancel4.c
+++ b/nptl/tst-cancel4.c
@@ -781,9 +781,13 @@ tf_sigpause (void *arg)
 
   pthread_cleanup_push (cl, NULL);
 
+#ifdef SIGCANCEL
   /* Just for fun block the cancellation signal.  We need to use
      __xpg_sigpause since otherwise we will get the BSD version.  */
   __xpg_sigpause (SIGCANCEL);
+#else
+  pause ();
+#endif
 
   pthread_cleanup_pop (0);