From 0e3f3fb078c7ce6c234bd381cd78fc5aadb167da Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Tue, 27 Oct 2009 05:03:29 +0000 Subject: [PATCH] Use HAVE_DECL_PTHREAD_ATTR_GETCPUTIME. --- testsuites/psxtests/psxhdrs/pthread36.c | 6 ++++++ 1 file changed, 6 insertions(+) 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 +#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