diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-10-27 05:03:29 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-10-27 05:03:29 +0000 |
commit | 0e3f3fb078c7ce6c234bd381cd78fc5aadb167da (patch) | |
tree | b45c18ee5ef3cef114b73f9977b21efb7f7c02ea /testsuites | |
parent | Use HAVE_DECL_PTHREAD_ATTR_SETCPUTIME. (diff) | |
download | rtems-0e3f3fb078c7ce6c234bd381cd78fc5aadb167da.tar.bz2 |
Use HAVE_DECL_PTHREAD_ATTR_GETCPUTIME.
Diffstat (limited to 'testsuites')
-rw-r--r-- | testsuites/psxtests/psxhdrs/pthread36.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/testsuites/psxtests/psxhdrs/pthread36.c b/testsuites/psxtests/psxhdrs/pthread36.c index 6c7bb96903..6b74f4f83e 100644 --- a/testsuites/psxtests/psxhdrs/pthread36.c +++ b/testsuites/psxtests/psxhdrs/pthread36.c @@ -14,6 +14,12 @@ #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 #error "rtems is supposed to have pthread_attr_getcputime" #endif |