From 732a07401edb4e831505319cfd4b15a9f03d94ea Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Mon, 16 May 2011 14:11:11 +0000 Subject: =?UTF-8?q?2011-05-16=09Ralf=20Cors=C3=A9pius=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * posix/Makefile.am: Add posixtime.h. * posix/src/clockgetres.c, posix/src/clockgettime.c, posix/src/clocksettime.c: Use CLOCK_PROCESS_CPUTIME_ID, CLOCK_THREAD_CPUTIME_ID. Include posix/src/posixtime.h. * posix/src/posixtime.h: New. --- cpukit/posix/src/clocksettime.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'cpukit/posix/src/clocksettime.c') diff --git a/cpukit/posix/src/clocksettime.c b/cpukit/posix/src/clocksettime.c index aa3743d9f9..fa1528a633 100644 --- a/cpukit/posix/src/clocksettime.c +++ b/cpukit/posix/src/clocksettime.c @@ -23,6 +23,8 @@ #include +#include "posixtime.h" + /*PAGE * * 14.2.1 Clocks, P1003.1b-1993, p. 263 @@ -45,11 +47,11 @@ int clock_settime( _Thread_Enable_dispatch(); } #ifdef _POSIX_CPUTIME - else if ( clock_id == CLOCK_PROCESS_CPUTIME ) + else if ( clock_id == CLOCK_PROCESS_CPUTIME_ID ) rtems_set_errno_and_return_minus_one( ENOSYS ); #endif #ifdef _POSIX_THREAD_CPUTIME - else if ( clock_id == CLOCK_THREAD_CPUTIME ) + else if ( clock_id == CLOCK_THREAD_CPUTIME_ID ) rtems_set_errno_and_return_minus_one( ENOSYS ); #endif else -- cgit v1.2.3