summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2013-01-14 18:01:19 +0000
committerdim <dim@FreeBSD.org>2013-01-14 18:01:19 +0000
commite8cf8aab231fe1b1ae82eff6e64af146514eea71 (patch)
tree335c3ca8f9eb2fda91572a2fef0548d0325838e8 /include
parent0d680817f0cff431dd7b6c8a64fed98c793ae879 (diff)
downloadFreeBSD-src-e8cf8aab231fe1b1ae82eff6e64af146514eea71.zip
FreeBSD-src-e8cf8aab231fe1b1ae82eff6e64af146514eea71.tar.gz
Add CLOCK_PROCESS_CPUTIME_ID to <time.h>, to synchronize the CLOCK_*
values with those in <sys/time.h>. Otherwise, if a program includes <time.h> before <sys/time.h>, the CLOCK_PROCESS_CPUTIME_ID macro never gets defined. Reviewed by: davidxu X-MFC-With: 239347
Diffstat (limited to 'include')
-rw-r--r--include/time.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/time.h b/include/time.h
index 6c9e7a9..14d6044 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
OpenPOWER on IntegriCloud