From abca9f7f5893adee7d0eac2ca8962b9c5321e0fe Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 4 Apr 2004 00:41:39 +0000 Subject: Update. * inet/test-ifaddrs.c: Fight warnings. * argp/argp-help.c: Fight warnings. * include/time.h: Declare __difftime. --- nptl/tst-clock2.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'nptl/tst-clock2.c') diff --git a/nptl/tst-clock2.c b/nptl/tst-clock2.c index 62e5752032..54f5041282 100644 --- a/nptl/tst-clock2.c +++ b/nptl/tst-clock2.c @@ -25,6 +25,7 @@ #include +#if _POSIX_THREAD_CPUTIME static pthread_barrier_t b2; static pthread_barrier_t bN; @@ -48,6 +49,7 @@ tf (void *arg) return NULL; } +#endif int @@ -68,15 +70,15 @@ do_test (void) pthread_t th[N + 1]; clockid_t cl[N + 1]; -#ifndef CLOCK_THREAD_CPUTIME_ID +# ifndef CLOCK_THREAD_CPUTIME_ID if (pthread_getcpuclockid (pthread_self (), &cl[0]) != 0) { puts ("own pthread_getcpuclockid failed"); return 1; } -#else +# else cl[0] = CLOCK_THREAD_CPUTIME_ID; -#endif +# endif pthread_attr_t at; -- cgit v1.2.3