summaryrefslogtreecommitdiffstats
path: root/testsuites
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2009-10-27 05:03:29 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2009-10-27 05:03:29 +0000
commit0e3f3fb078c7ce6c234bd381cd78fc5aadb167da (patch)
treeb45c18ee5ef3cef114b73f9977b21efb7f7c02ea /testsuites
parentUse HAVE_DECL_PTHREAD_ATTR_SETCPUTIME. (diff)
downloadrtems-0e3f3fb078c7ce6c234bd381cd78fc5aadb167da.tar.bz2
Use HAVE_DECL_PTHREAD_ATTR_GETCPUTIME.
Diffstat (limited to 'testsuites')
-rw-r--r--testsuites/psxtests/psxhdrs/pthread36.c6
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