From a5ff61042d7d8fb8cc939da320043203887c69a4 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 17 May 2003 02:52:07 +0000 Subject: [PATCH] (CPUCLOCK_P): Fix definition. --- sysdeps/unix/clock_nanosleep.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sysdeps/unix/clock_nanosleep.c b/sysdeps/unix/clock_nanosleep.c index 3582698..ec468ad 100644 --- a/sysdeps/unix/clock_nanosleep.c +++ b/sysdeps/unix/clock_nanosleep.c @@ -25,15 +25,15 @@ #if HP_TIMING_AVAIL # define CPUCLOCK_P(clock) \ - ((clock) != CLOCK_PROCESS_CPUTIME_ID \ - && (clock) != CLOCK_THREAD_CPUTIME_ID) + ((clock) == CLOCK_PROCESS_CPUTIME_ID \ + || (clock) == CLOCK_THREAD_CPUTIME_ID) #else # define CPUCLOCK_P(clock) 0 #endif #ifndef INVALID_CLOCK_P # define INVALID_CLOCK_P(cl) \ - ((cl) < CLOCK_REALTIME || (cl) > CLOCK_THREAD_CPUTIME_ID || CPUCLOCK_P (cl)) + ((cl) < CLOCK_REALTIME || (cl) > CLOCK_THREAD_CPUTIME_ID) #endif -- 2.7.4