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