diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-10-27 05:01:14 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-10-27 05:01:14 +0000 |
commit | 8c3c4822b374ba48fd81c4055e54cc07a0d096b4 (patch) | |
tree | 07a59081b509e728c5f96db4251585bea853d089 | |
parent | 2009-10-27 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-8c3c4822b374ba48fd81c4055e54cc07a0d096b4.tar.bz2 |
Use HAVE_DECL_PTHREAD_ATTR_GETCPUTIME, HAVE_DECL_PTHREAD_ATTR_SETCPUTIME.
-rw-r--r-- | testsuites/psxtests/psx07/init.c | 12 |
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> |