aboutsummaryrefslogtreecommitdiff
path: root/nptl/tst-clock2.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-10-06 18:09:57 +0000
committerUlrich Drepper <drepper@redhat.com>2004-10-06 18:09:57 +0000
commitc56da3a39b4da2cd4226e3ad937d48cc4c988149 (patch)
treeb306f712bb8ae2c32916da9a9804fa2b36e35912 /nptl/tst-clock2.c
parent6bdd38ba719f92869fd7db62ad5d9368ad1b9e26 (diff)
downloadglibc-c56da3a39b4da2cd4226e3ad937d48cc4c988149.tar
glibc-c56da3a39b4da2cd4226e3ad937d48cc4c988149.tar.gz
glibc-c56da3a39b4da2cd4226e3ad937d48cc4c988149.tar.bz2
glibc-c56da3a39b4da2cd4226e3ad937d48cc4c988149.zip
Update.
* posix/tst-getaddrinfo2.c: Include stdlib.h and string.h. (do_test): Use %p instead of 0x%08X to print a pointer. * malloc/malloc.c: Include stdio-common/_itoa.h.
Diffstat (limited to 'nptl/tst-clock2.c')
-rw-r--r--nptl/tst-clock2.c8
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)
{