summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psx07/init.c
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2009-10-27 05:01:14 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2009-10-27 05:01:14 +0000
commit8c3c4822b374ba48fd81c4055e54cc07a0d096b4 (patch)
tree07a59081b509e728c5f96db4251585bea853d089 /testsuites/psxtests/psx07/init.c
parent2009-10-27 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-8c3c4822b374ba48fd81c4055e54cc07a0d096b4.tar.bz2
Use HAVE_DECL_PTHREAD_ATTR_GETCPUTIME, HAVE_DECL_PTHREAD_ATTR_SETCPUTIME.
Diffstat (limited to 'testsuites/psxtests/psx07/init.c')
-rw-r--r--testsuites/psxtests/psx07/init.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuites/psxtests/psx07/init.c b/testsuites/psxtests/psx07/init.c
index 7de7021646..3c4403cc6b 100644
--- a/testsuites/psxtests/psx07/init.c
+++ b/testsuites/psxtests/psx07/init.c
@@ -12,6 +12,18 @@
#include <pthread.h>
#include <sched.h>
+#if !HAVE_DECL_PTHREAD_ATTR_GETCPUTIME
+extern int pthread_attr_getcputime(
+ pthread_attr_t *attr,
+ int *clock_allowed);
+#endif
+
+#if !HAVE_DECL_PTHREAD_ATTR_SETCPUTIME
+extern int pthread_attr_setcputime(
+ pthread_attr_t *attr,
+ int clock_allowed);
+#endif
+
#define CONFIGURE_INIT
#include "system.h"
#include <errno.h>