From 15a4f37c7f91d410ba22d1c1c353d847b0a38547 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Tue, 27 Oct 2009 05:02:34 +0000 Subject: [PATCH] Use HAVE_DECL_PTHREAD_ATTR_SETCPUTIME. --- testsuites/psxtests/psxhdrs/pthread35.c | 6 ++++++ 1 file changed, 6 insertions(+) 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 +#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