diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-05-17 02:52:07 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-05-17 02:52:07 +0000 |
commit | a5ff61042d7d8fb8cc939da320043203887c69a4 (patch) | |
tree | 16a160dfeb1148a117f5c8f7cf50cceb337c5767 /sysdeps/unix/clock_nanosleep.c | |
parent | 1eefffb0e7fb26e4bf11cdaeae54d30bcc66f369 (diff) | |
download | glibc-a5ff61042d7d8fb8cc939da320043203887c69a4.tar.gz glibc-a5ff61042d7d8fb8cc939da320043203887c69a4.tar.xz glibc-a5ff61042d7d8fb8cc939da320043203887c69a4.zip |
(CPUCLOCK_P): Fix definition.
Diffstat (limited to 'sysdeps/unix/clock_nanosleep.c')
-rw-r--r-- | sysdeps/unix/clock_nanosleep.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sysdeps/unix/clock_nanosleep.c b/sysdeps/unix/clock_nanosleep.c index 358269852a..ec468ad8c9 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 |