diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2011-05-18 08:59:44 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2011-05-18 08:59:44 +0000 |
commit | 7383b64448ff081eeea56440e3fed8ddbf4b338d (patch) | |
tree | b63bfcf97006bb65ce16a9e4171820f6c082d20b /cpukit/configure.ac | |
parent | 2011-05-18 Till Straumann <strauman@slac.stanford.edu> (diff) | |
download | rtems-7383b64448ff081eeea56440e3fed8ddbf4b338d.tar.bz2 |
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.
Diffstat (limited to 'cpukit/configure.ac')
-rw-r--r-- | cpukit/configure.ac | 4 |
1 files changed, 4 insertions, 0 deletions
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>]) |