forked from Imagelibrary/rtems
Use HAVE_DECL_PTHREAD_ATTR_GETCPUTIME.
This commit is contained in:
@@ -14,6 +14,12 @@
|
|||||||
|
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
|
|
||||||
|
#if !HAVE_DECL_PTHREAD_ATTR_GETCPUTIME
|
||||||
|
extern int pthread_attr_getcputime(
|
||||||
|
pthread_attr_t *attr,
|
||||||
|
int *clock_allowed);
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef _POSIX_THREAD_CPUTIME
|
#ifndef _POSIX_THREAD_CPUTIME
|
||||||
#error "rtems is supposed to have pthread_attr_getcputime"
|
#error "rtems is supposed to have pthread_attr_getcputime"
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user