diff options
author | Jakub Jelinek <jakub@redhat.com> | 2004-10-12 12:00:26 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2004-10-12 12:00:26 +0000 |
commit | 3ee87ca7d4c813087eeee8b9fd04b7836244a54a (patch) | |
tree | 30d5d50dce77cb2e80d0bead19ee23e7d0a38617 /nptl/tst-clock2.c | |
parent | 7dbf6a6cd568437c4b2fa14bcf5a1914cc267527 (diff) |
Updated to fedora-glibc-20041012T1128cvs/fedora-glibc-2_3_3-67
Diffstat (limited to 'nptl/tst-clock2.c')
-rw-r--r-- | nptl/tst-clock2.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/nptl/tst-clock2.c b/nptl/tst-clock2.c index fd216b2ba1..bca40956e2 100644 --- a/nptl/tst-clock2.c +++ b/nptl/tst-clock2.c @@ -58,6 +58,14 @@ do_test (void) #if defined _POSIX_THREAD_CPUTIME && _POSIX_THREAD_CPUTIME >= 0 # define N 10 +# if _POSIX_THREAD_CPUTIME == 0 + if (sysconf (_SC_THREAD_CPUTIME) < 0) + { + puts ("_POSIX_THREAD_CPUTIME option not available"); + return 0; + } +# endif + if (pthread_barrier_init (&b2, NULL, 2) != 0 || pthread_barrier_init (&bN, NULL, N + 1) != 0) { |