summaryrefslogtreecommitdiff
path: root/test/nptl/tst-cancel25.c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2016-10-28 18:43:57 +0200
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-10-28 18:43:57 +0200
commite65912f8b2a6fa966b1ba45360070cf9f25568b4 (patch)
tree7fd84c87041f86ba24c03cacd0aa0c656ef88d33 /test/nptl/tst-cancel25.c
parent7988979a722b4cdf287b2093956a76a3f19b9897 (diff)
rework most tests to work as standalone package
Diffstat (limited to 'test/nptl/tst-cancel25.c')
-rw-r--r--test/nptl/tst-cancel25.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/nptl/tst-cancel25.c b/test/nptl/tst-cancel25.c
index 00b99ad..c724d8a 100644
--- a/test/nptl/tst-cancel25.c
+++ b/test/nptl/tst-cancel25.c
@@ -1,4 +1,4 @@
-#include <pthreadP.h>
+#include <pthread.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
@@ -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);