diff options
author | David Xu <davidxu@FreeBSD.org> | 2012-09-10 05:00:29 +0000 |
---|---|---|
committer | David Xu <davidxu@FreeBSD.org> | 2012-09-10 05:00:29 +0000 |
commit | 224ee591e78db1dad63dc81d565b4629308c41f9 (patch) | |
tree | ee8333cadb4ee5c66cfdb0e02a002a56a22fbdc5 /include/time.h | |
parent | 372c42cf95c9bec47fe67c36a0a04472ba72d073 (diff) | |
download | src-test2-224ee591e78db1dad63dc81d565b4629308c41f9.tar.gz src-test2-224ee591e78db1dad63dc81d565b4629308c41f9.zip |
Add missing prototype for clock_getcpuclockid.
Notes
Notes:
svn path=/head/; revision=240295
Diffstat (limited to 'include/time.h')
-rw-r--r-- | include/time.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/time.h b/include/time.h index 19c948d646a7..6c9e7a92314e 100644 --- a/include/time.h +++ b/include/time.h @@ -88,6 +88,13 @@ typedef __timer_t timer_t; #include <sys/timespec.h> #endif /* __POSIX_VISIBLE >= 199309 */ +#if __POSIX_VISIBLE >= 200112 +#ifndef _PID_T_DECLARED +typedef __pid_t pid_t; +#define _PID_T_DECLARED +#endif +#endif + /* These macros are also in sys/time.h. */ #if !defined(CLOCK_REALTIME) && __POSIX_VISIBLE >= 200112 #define CLOCK_REALTIME 0 @@ -165,6 +172,10 @@ int clock_settime(clockid_t, const struct timespec *); int nanosleep(const struct timespec *, struct timespec *); #endif /* __POSIX_VISIBLE >= 199309 */ +#if __POSIX_VISIBLE >= 200112 +int clock_getcpuclockid(pid_t, clockid_t *); +#endif + #if __POSIX_VISIBLE >= 199506 char *asctime_r(const struct tm *, char *); char *ctime_r(const time_t *, char *); |