summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2011-05-18 08:59:44 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2011-05-18 08:59:44 +0000
commit7383b64448ff081eeea56440e3fed8ddbf4b338d (patch)
treeb63bfcf97006bb65ce16a9e4171820f6c082d20b /cpukit
parent 2011-05-18 Till Straumann <strauman@slac.stanford.edu> (diff)
downloadrtems-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')
-rw-r--r--cpukit/ChangeLog5
-rw-r--r--cpukit/configure.ac4
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>])