diff options
Diffstat (limited to 'sysdeps/unix/clock_nanosleep.c')
-rw-r--r-- | sysdeps/unix/clock_nanosleep.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sysdeps/unix/clock_nanosleep.c b/sysdeps/unix/clock_nanosleep.c index 0170188f06..635eec4160 100644 --- a/sysdeps/unix/clock_nanosleep.c +++ b/sysdeps/unix/clock_nanosleep.c @@ -20,9 +20,14 @@ #include <assert.h> #include <errno.h> #include <time.h> +#include <hp-timing.h> -#ifndef CLOCK_P +#if HP_TIMING_AVAIL +# define CLOCK_P(clock) \ + (clock) != CLOCK_PROCESS_CPUTIME_ID \ + && (clock) != CLOCK_THREAD_CPUTIME_ID +#else # define CLOCK_P(clock) 0 #endif |