diff options
Diffstat (limited to 'lib/thread.h')
-rw-r--r-- | lib/thread.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/thread.h b/lib/thread.h index 737ed005c..abd94ff4f 100644 --- a/lib/thread.h +++ b/lib/thread.h @@ -41,7 +41,11 @@ extern unsigned long cputime_threshold; extern unsigned long walltime_threshold; struct rusage_t { +#ifdef HAVE_CLOCK_THREAD_CPUTIME_ID + struct timespec cpu; +#else struct rusage cpu; +#endif struct timeval real; }; #define RUSAGE_T struct rusage_t |