diff options
Diffstat (limited to 'nptl')
-rw-r--r-- | nptl/tst-cancel25.c | 2 | ||||
-rw-r--r-- | nptl/tst-signal7.c | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/nptl/tst-cancel25.c b/nptl/tst-cancel25.c index 00b99ad553..ed4205ec45 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); diff --git a/nptl/tst-signal7.c b/nptl/tst-signal7.c index b3889891cc..1fbf3dbf72 100644 --- a/nptl/tst-signal7.c +++ b/nptl/tst-signal7.c @@ -27,6 +27,7 @@ do_test (void) { int result = 0; +#ifdef SIGCANCEL errno = 0; if (sigaction (SIGCANCEL, NULL, NULL) == 0) { @@ -38,7 +39,9 @@ do_test (void) puts ("sigaction(SIGCANCEL) did not set errno to EINVAL"); result = 1; } +#endif +#ifdef SIGSETXID errno = 0; if (sigaction (SIGSETXID, NULL, NULL) == 0) { @@ -50,6 +53,7 @@ do_test (void) puts ("sigaction(SIGSETXID) did not set errno to EINVAL"); result = 1; } +#endif return result; } |