summaryrefslogtreecommitdiffstats
path: root/testsuites
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2009-10-27 05:02:34 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2009-10-27 05:02:34 +0000
commit15a4f37c7f91d410ba22d1c1c353d847b0a38547 (patch)
treed9a28184bcae4103ecdf68ab5219a45de4975ba7 /testsuites
parentUse HAVE_DECL_PTHREAD_ATTR_GETCPUTIME, HAVE_DECL_PTHREAD_ATTR_SETCPUTIME. (diff)
downloadrtems-15a4f37c7f91d410ba22d1c1c353d847b0a38547.tar.bz2
Use HAVE_DECL_PTHREAD_ATTR_SETCPUTIME.
Diffstat (limited to 'testsuites')
-rw-r--r--testsuites/psxtests/psxhdrs/pthread35.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/testsuites/psxtests/psxhdrs/pthread35.c b/testsuites/psxtests/psxhdrs/pthread35.c
index 44046182c6..fcb1e5cec9 100644
--- a/testsuites/psxtests/psxhdrs/pthread35.c
+++ b/testsuites/psxtests/psxhdrs/pthread35.c
@@ -14,6 +14,12 @@
#include <pthread.h>
+#if !HAVE_DECL_PTHREAD_ATTR_SETCPUTIME
+extern int pthread_attr_setcputime(
+ pthread_attr_t *attr,
+ int clock_allowed);
+#endif
+
#ifndef _POSIX_THREAD_CPUTIME
#error "rtems is supposed to have pthread_attr_setcputime"
#endif