summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/clocksettime.c
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2011-05-16 14:11:11 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2011-05-16 14:11:11 +0000
commit732a07401edb4e831505319cfd4b15a9f03d94ea (patch)
tree1c912e4a373c530d08499a8dec11ed5b7cbbd560 /cpukit/posix/src/clocksettime.c
parent2011-05-16 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-732a07401edb4e831505319cfd4b15a9f03d94ea.tar.bz2
2011-05-16 Ralf Corsépius <ralf.corsepius@rtems.org>
* 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.
Diffstat (limited to 'cpukit/posix/src/clocksettime.c')
-rw-r--r--cpukit/posix/src/clocksettime.c6
1 files changed, 4 insertions, 2 deletions
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 <rtems/seterr.h>
+#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