]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(CPUCLOCK_P): Fix definition.
authorUlrich Drepper <drepper@redhat.com>
Sat, 17 May 2003 02:52:07 +0000 (02:52 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sat, 17 May 2003 02:52:07 +0000 (02:52 +0000)
sysdeps/unix/clock_nanosleep.c

index 358269852adcd12bcb2feec81589381d1e5c7e9e..ec468ad8c9513d9b45e75a50b18064185c4d8ca9 100644 (file)
 
 #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