summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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