From 8c3c4822b374ba48fd81c4055e54cc07a0d096b4 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Tue, 27 Oct 2009 05:01:14 +0000 Subject: Use HAVE_DECL_PTHREAD_ATTR_GETCPUTIME, HAVE_DECL_PTHREAD_ATTR_SETCPUTIME. --- testsuites/psxtests/psx07/init.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'testsuites/psxtests/psx07/init.c') 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 #include +#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 -- cgit v1.2.3