mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-02 12:20:51 +00:00
Add missing prototype for clock_getcpuclockid.
This commit is contained in:
parent
372c42cf95
commit
224ee591e7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=240295
@ -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 *);
|
||||
|
Loading…
Reference in New Issue
Block a user