From c0e8ea253fea6c0712daa4f9124baa8c479713db Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Mon, 14 Jan 2013 18:01:19 +0000 Subject: [PATCH] Add CLOCK_PROCESS_CPUTIME_ID to , to synchronize the CLOCK_* values with those in . Otherwise, if a program includes before , the CLOCK_PROCESS_CPUTIME_ID macro never gets defined. Reviewed by: davidxu X-MFC-With: 239347 --- include/time.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/time.h b/include/time.h index 6c9e7a92314e..14d6044ae76d 100644 --- a/include/time.h +++ b/include/time.h @@ -112,6 +112,7 @@ typedef __pid_t pid_t; #define CLOCK_MONOTONIC_FAST 12 /* FreeBSD-specific. */ #define CLOCK_SECOND 13 /* FreeBSD-specific. */ #define CLOCK_THREAD_CPUTIME_ID 14 +#define CLOCK_PROCESS_CPUTIME_ID 15 #endif /* !defined(CLOCK_REALTIME) && __POSIX_VISIBLE >= 200112 */ #if !defined(TIMER_ABSTIME) && __POSIX_VISIBLE >= 200112