diff options
Diffstat (limited to 'cpukit')
-rw-r--r-- | cpukit/ChangeLog | 5 | ||||
-rw-r--r-- | cpukit/configure.ac | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index ec34505674..4a755d5d24 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,5 +1,10 @@ 2011-05-18 Ralf Corsépius <ralf.corsepius@rtems.org> + * configure.ac: Require time.h to provide CLOCK_PROCESS_CPUTIME_ID, + CLOCK_THREAD_CPUTIME_ID. + +2011-05-18 Ralf Corsépius <ralf.corsepius@rtems.org> + * sapi/Makefile.am: Reformat. 2011-05-18 Ralf Corsépius <ralf.corsepius@rtems.org> diff --git a/cpukit/configure.ac b/cpukit/configure.ac index 4a771add3d..83669daef1 100644 --- a/cpukit/configure.ac +++ b/cpukit/configure.ac @@ -66,6 +66,10 @@ AC_CHECK_DECLS([flockfile],[AC_CHECK_FUNCS([flockfile])],,[#include <stdio.h>]) AC_CHECK_DECLS([funlockfile],[AC_CHECK_FUNCS([funlockfile])],,[#include <stdio.h>]) AC_CHECK_DECLS([ftrylockfile],[AC_CHECK_FUNCS([ftrylockfile])],,[#include <stdio.h>]) +# Mandated by POSIX, older newlibs bogusly provided CLOCK_PROCESS_CPUTIME+CLOCK_THREAD_CPUTIME +AC_CHECK_DECL([CLOCK_PROCESS_CPUTIME_ID],[],[AC_MSG_ERROR([missing define CLOCK_PROCESS_CPUTIME_ID])],[#include <time.h>]) +AC_CHECK_DECL([CLOCK_THREAD_CPUTIME_ID],[],[AC_MSG_ERROR([missing define CLOCK_THREAD_CPUTIME_ID])],[#include <time.h>]) + # Mandated by POSIX, decls not present in some versions of newlib, # some versions stubbed in newlib's rtems crt0 RTEMS_CHECK_FUNC([seteuid],[#include <unistd.h>]) |